20 lines
591 B
Makefile
Executable file
20 lines
591 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
dh_systemd_enable gitlab-unicorn.service
|
|
dh_systemd_enable gitlab-sidekiq.service
|
|
dh_systemd_enable gitlab-workhorse.service
|
|
dh_systemd_enable gitlab.target
|
|
dh_systemd_start gitlab.target
|
|
# Make sure we are installing all required files in debian/install
|
|
a=$(ls -1 | wc -l); b=$(cat debian/install |cut -d' '\
|
|
-f1|grep -v debian |wc -l); if ! [ $(echo "$a" - "$b"|bc) -eq 5 ];\
|
|
then echo "Install newly added files or adjust the count in\
|
|
debian/rules"; exit 1;fi
|
|
|
|
override_dh_installinit:
|
|
dh_installinit --no-start
|