diff --git a/scripts/install b/scripts/install index fbd5efc..ee8b14d 100644 --- a/scripts/install +++ b/scripts/install @@ -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" diff --git a/scripts/upgrade b/scripts/upgrade index 667e3f1..55a7b26 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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.