1
0
Fork 0
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:
yalh76 2019-01-29 23:37:09 +01:00 committed by GitHub
commit a31949b727
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View file

@ -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
#=================================================

View file

@ -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"

View file

@ -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"