1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

Fix update

This commit is contained in:
Yalh 2019-01-29 04:51:30 +01:00
parent 643a3dbb01
commit 9f2ce65326
2 changed files with 2 additions and 3 deletions

View file

@ -184,9 +184,6 @@ npm install typescript@>=2.0 --save
npm install ts-node
popd
#cp ../conf/package.json "$final_path/package.json"
#ynh_replace_string "__PORT__" "$port" "$final_path/package.json"
#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"

View file

@ -125,6 +125,8 @@ 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.