Merge branch 'master' of https://github.com/Swarmops/Swarmops
This commit is contained in:
@@ -9,7 +9,7 @@ mkdir -p /var/lib/swarmops/upload
|
||||
#if we're running systemd, use systemd;
|
||||
#otherwise, use upstart
|
||||
|
||||
if [ -z $(pidof systemd) ]; then
|
||||
if [ -z $(pidof -s systemd) ]; then
|
||||
#start the daemon
|
||||
/etc/init.d/swarmops-backend start
|
||||
#register the daemon
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
if [ ! -e /etc/swarmops/database.config ]; then
|
||||
if [ -e /etc/init.d/apache2 ]; then
|
||||
if [ /etc/init.d/apache2 status > /dev/null ]; then
|
||||
if [ -z $(pidof -s apache2) ]; then
|
||||
# Set a flag to postinst to restart Apache
|
||||
echo foo > /tmp/swarmops-restart-apache.flag
|
||||
/etc/init.d/apache2 stop
|
||||
|
||||
Reference in New Issue
Block a user