diff --git a/scripts/remove b/scripts/remove index 8d69c35..9f2ab84 100644 --- a/scripts/remove +++ b/scripts/remove @@ -63,7 +63,6 @@ ynh_remove_nodejs #================================================= # remove tmp files -sudo -u $app rm -rf /tmp/* ynh_secure_remove "/var/tmp/*" # Remove the app directory securely diff --git a/scripts/restore b/scripts/restore index 4151059..24408ab 100644 --- a/scripts/restore +++ b/scripts/restore @@ -141,4 +141,4 @@ chown -R "$app":"$app" "/var/log/$app" # START SERVICE #================================================= -ynh_systemd_action --action=start --service_name=$app +ynh_systemd_action --action=start --service_name=$app --line_match="Browse to http://localhost:" diff --git a/scripts/upgrade b/scripts/upgrade index 65214a0..a88ccc9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -125,11 +125,8 @@ chown -R "$app":"$app" "$final_path" pushd $final_path ynh_use_nodejs - sudo -u $app env PATH=$PATH:$nodejs_path npm install "graphql@^0.13.1" - sudo -u $app env PATH=$PATH:$nodejs_path npm install "acorn@^6.0.0" - sudo -u $app env PATH=$PATH:$nodejs_path npm install "babel-core@>=6.0.20" - sudo -u $app env PATH=$PATH:$nodejs_path npm install "eslint@>=5.0.0" - sudo -u $app env PATH=$PATH:$nodejs_path npm install + sudo -u $app env PATH=$PATH:$nodejs_path npm update --production + sudo -u $app env PATH=$PATH:$nodejs_path npm install --production sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix sudo -u $app env PATH=$PATH:$nodejs_path npm run build popd @@ -185,4 +182,4 @@ systemctl reload nginx # START SERVICE #================================================= -ynh_systemd_action --action=start --service_name=$app +ynh_systemd_action --action=start --service_name=$app --line_match="Browse to http://localhost:"