make gitlab starting conditional (systemd or sysv)
This commit is contained in:
parent
0b05de1029
commit
cc11e53141
1 changed files with 6 additions and 1 deletions
7
debian/rake-tasks.sh
vendored
7
debian/rake-tasks.sh
vendored
|
@ -14,7 +14,12 @@ echo "Precompiling assets..."
|
||||||
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile RAILS_ENV=production'
|
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile RAILS_ENV=production'
|
||||||
|
|
||||||
# Start gitlab
|
# Start gitlab
|
||||||
invoke-rc.d gitlab start
|
if grep systemd /proc/cmdline
|
||||||
|
then
|
||||||
|
systemctl start gitlab.target
|
||||||
|
else
|
||||||
|
invoke-rc.d gitlab start
|
||||||
|
fi
|
||||||
|
|
||||||
# Check gitlab is configured correctly
|
# Check gitlab is configured correctly
|
||||||
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:check RAILS_ENV=production'
|
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:check RAILS_ENV=production'
|
||||||
|
|
Loading…
Reference in a new issue