mirror of
https://github.com/YunoHost-Apps/distbin_ynh.git
synced 2024-09-03 18:26:10 +02:00
Merge pull request #1 from yalh76/testing
remove fix for upstream app + add /tmp file removal during removal
This commit is contained in:
commit
a31949b727
3 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue