Move supervisor scripts into postinstall
This commit is contained in:
@@ -22,7 +22,5 @@ cp nginx/cert/* $NGINX_ROOT/cert/
|
||||
touch $NGINX_ROOT/naked_domain.conf
|
||||
sed -e "s/##ADMIN_FQDN##/admin-localhost/" -e "s|##SRCDIR##|$SRCDIR|" nginx/admin.conf_template > $NGINX_ROOT/applications/admin.conf
|
||||
|
||||
|
||||
sudo mkdir -p /var/log/supervisor
|
||||
sudo NGINX_ROOT=$NGINX_ROOT supervisord -n -c supervisor/supervisord.conf
|
||||
sudo nginx -c nginx.conf -p $NGINX_ROOT
|
||||
|
||||
|
||||
+1
-2
@@ -10,9 +10,8 @@ NGINX_CONFIG_DIR=/home/$USER/configs/nginx
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
rm -rf /etc/supervisor
|
||||
mkdir -p /etc/supervisor
|
||||
mkdir -p /etc/supervisor/conf.d
|
||||
cp $SRCDIR/supervisor/supervisord.conf /etc/supervisor/
|
||||
cp $SCRIPT_DIR/supervisord/supervisord.conf /etc/supervisor/
|
||||
|
||||
echo "Writing supervisor configs..."
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
[program:nginx]
|
||||
command=nginx -c nginx.conf -p %(ENV_NGINX_ROOT)s/
|
||||
autostart=true
|
||||
autorestart=true
|
||||
Reference in New Issue
Block a user