feat: add openresty and runit support to packaging

Our docker image uses runit instead of init/systemd, hence the added sv support on Ubuntu operating systems.
This commit is contained in:
Jose Diaz-Gonzalez
2019-09-16 03:03:20 -04:00
parent 0e219b05e9
commit a9ce738f68
4 changed files with 63 additions and 35 deletions

5
debian/postinst vendored
View File

@@ -89,7 +89,10 @@ setup-sshcommand() {
}
setup-dokku-installer() {
if [[ -f /etc/nginx/conf.d/dokku-installer.conf ]]; then
NGINX_ROOT="/etc/nginx"
[[ -x /usr/bin/openresty ]] && NGINX_ROOT="/usr/local/openresty/nginx/conf"
if [[ -f "$NGINX_ROOT/conf.d/dokku-installer.conf" ]]; then
echo "Setting up dokku-installer"
/usr/share/dokku/contrib/dokku-installer.py onboot