echo the script and project dor, sleep only 30 sec

This commit is contained in:
Ulf Gebhardt 2022-01-12 15:30:47 +01:00
parent ba88160735
commit c01f684e8c
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -2,7 +2,7 @@
# wait for node to properly unref the process(?) # wait for node to properly unref the process(?)
# Wait 60 seconds to evaluate ps -x --forest # Wait 60 seconds to evaluate ps -x --forest
sleep 60 sleep 30
# Find current directory & configure paths # Find current directory & configure paths
SCRIPT_PATH=$(realpath $0) SCRIPT_PATH=$(realpath $0)
@ -34,6 +34,9 @@ UPDATE_SITE_CONFIG=stage1_updating
# Create a new updating.html from the template # Create a new updating.html from the template
\cp $SCRIPT_DIR/nginx/update-page/updating.html.template $UPDATE_HTML \cp $SCRIPT_DIR/nginx/update-page/updating.html.template $UPDATE_HTML
echo "SCRIPT_DIR ${SCRIPT_DIR}<br>" >> $UPDATE_HTML
echo "PROJECT_DIR ${PROJECT_DIR}<br>" >> $UPDATE_HTML
# configure nginx for the update-page # configure nginx for the update-page
echo 'Configuring nginx to serve the update-page<br>' >> $UPDATE_HTML echo 'Configuring nginx to serve the update-page<br>' >> $UPDATE_HTML
rm /etc/nginx/sites-enabled/gradido.conf rm /etc/nginx/sites-enabled/gradido.conf