Skip to content
Snippets Groups Projects
Commit 9b1fb4c7 authored by Bob Mottram's avatar Bob Mottram
Browse files

Extra logging when app fails to install

parent 44aab710
No related branches found
No related tags found
No related merge requests found
......@@ -1524,6 +1524,13 @@ function install_apps_from_webadmin {
echo "if ! /usr/bin/timeout $APP_INSTALL_TIMEOUT_SEC /usr/local/bin/${PROJECT_NAME}-addremove add \"${app_name}\" > \"$webadmin_install_dir/applog.txt\"; then";
echo " sed -i \"/$linestr/d\" \"$pending_installs\"";
echo " notification_str=\"$translated_notification_failed\"";
echo " if [ -f \"/etc/nginx/sites-available/${app_domain}\" ]; then";
echo " echo \"Removing /etc/nginx/sites-available/${app_domain}\" >> \"$webadmin_install_dir/applog.txt\"";
echo " nginx_dissite \"${app_domain}\"";
echo " rm \"/etc/nginx/sites-available/${app_domain}\"";
echo " echo \"Restarting nginx\" >> \"$webadmin_install_dir/applog.txt\"";
echo ' systemctl restart nginx';
echo ' fi';
echo 'else';
echo " notification_str=\"$translated_notification_success\"";
echo 'fi';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment