diff --git a/scripts/install b/scripts/install index 59043c6..d0dc75e 100644 --- a/scripts/install +++ b/scripts/install @@ -182,9 +182,6 @@ npm install typescript@>=2.0 --save npm install ts-node popd -#Fix a error in the public page -ynh_replace_string "res.writeHead(200)" "res.writeHead(200, {\"content-type\": \"text/html\",})" "$final_path/src/distbin-html/public.ts" - chown -R $app:$app $final_path #================================================= diff --git a/scripts/remove b/scripts/remove index 7c8469b..c64c458 100644 --- a/scripts/remove +++ b/scripts/remove @@ -61,6 +61,10 @@ ynh_remove_nodejs # REMOVE APP MAIN DIR #================================================= +# remove tmp files +sudo -u $app rm -rf /tmp/* +ynh_secure_remove "/var/tmp/*" + # Remove the app directory securely ynh_secure_remove "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 79a3781..4d0575a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -125,9 +125,6 @@ npm install typescript@>=2.0 --save npm install ts-node popd -#Fix a error in the public page -ynh_replace_string "res.writeHead(200)" "res.writeHead(200, {\"content-type\": \"text/html\",})" "$final_path/src/distbin-html/public.ts" - ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. ### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it. #ynh_backup_if_checksum_is_different "$final_path/CONFIG_FILE"