fix systemd checking
This commit is contained in:
parent
4ccabc22ca
commit
98df064022
2 changed files with 9 additions and 4 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
gitlab (8.4.3+dfsg-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Check if /run/systemd/system dirctory exist for systemd
|
||||||
|
|
||||||
|
-- Pirate Praveen <praveen@debian.org> Fri, 12 Feb 2016 01:01:59 +0530
|
||||||
|
|
||||||
gitlab (8.4.3+dfsg-2) unstable; urgency=medium
|
gitlab (8.4.3+dfsg-2) unstable; urgency=medium
|
||||||
|
|
||||||
[ Balasankar C ]
|
[ Balasankar C ]
|
||||||
|
|
7
debian/rake-tasks.sh
vendored
7
debian/rake-tasks.sh
vendored
|
@ -12,11 +12,10 @@ 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
|
||||||
if grep systemd /proc/1/cmdline
|
if [ -d "/run/systemd/system" ]; then
|
||||||
then
|
systemctl start gitlab.target
|
||||||
systemctl start gitlab.target
|
|
||||||
else
|
else
|
||||||
invoke-rc.d gitlab start
|
invoke-rc.d gitlab start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Workaround for #813770
|
# Workaround for #813770
|
||||||
|
|
Loading…
Reference in a new issue