attempt to bypass inconsistencies in nginx start behavior. closes #2197

This commit is contained in:
Michael Hobbs
2016-05-16 12:45:37 -07:00
parent 9b60f0c3c6
commit 78d2b3e7d2

View File

@@ -49,18 +49,24 @@ gpasswd -M "" dokku
case "$DOKKU_DISTRO" in case "$DOKKU_DISTRO" in
debian) debian)
/usr/sbin/invoke-rc.d nginx start NGINX_INIT="/usr/sbin/invoke-rc.d"
"$NGINX_INIT" nginx start || "$NGINX_INIT" nginx reload
;; ;;
ubuntu) ubuntu)
/etc/init.d/nginx start NGINX_INIT="/etc/init.d/nginx"
"$NGINX_INIT" start || "$NGINX_INIT" reload
;; ;;
opensuse) opensuse)
/sbin/service nginx start NGINX_INIT="/sbin/service"
"$NGINX_INIT" nginx start || "$NGINX_INIT" nginx reload
;; ;;
arch) arch)
/usr/bin/systemctl start nginx NGINX_INIT="/usr/bin/systemctl"
"$NGINX_INIT" start nginx || "$NGINX_INIT" reload nginx
;; ;;
esac esac