Move supervisor scripts into postinstall

This commit is contained in:
Girish Ramakrishnan
2014-11-21 23:18:11 -08:00
parent 79d5135946
commit 620e8bc1af
4 changed files with 2 additions and 9 deletions
+1 -3
View File
@@ -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
@@ -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..."
-4
View File
@@ -1,4 +0,0 @@
[program:nginx]
command=nginx -c nginx.conf -p %(ENV_NGINX_ROOT)s/
autostart=true
autorestart=true