1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/luckysheet_ynh.git synced 2024-09-03 19:36:21 +02:00

Fix upgrade

This commit is contained in:
yalh76 2022-06-20 20:13:50 +02:00
parent 15fe83aa74
commit c51111fd99

View file

@ -123,10 +123,11 @@ then
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build
popd
tmpdir="$(mktemp -d)"
ynh_exec_as $app cp -af "$final_path/live/config.js" "$tmpdir/config.js"
cp -af "$final_path/live/config.js" "$tmpdir/config.js"
ynh_secure_remove --file="$final_path/live"
ynh_exec_as $app mv "$final_path/build/dist" "$final_path/live"
ynh_exec_as $app cp -af "$tmpdir/config.js" "$final_path/live/config.js"
mv "$final_path/build/dist" "$final_path/live"
cp -af "$tmpdir/config.js" "$final_path/live/config.js"
ynh_secure_remove --file="$tmpdir"
fi
chmod 750 "$final_path"