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:
parent
15fe83aa74
commit
c51111fd99
1 changed files with 4 additions and 3 deletions
|
@ -123,10 +123,11 @@ then
|
||||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build
|
||||||
popd
|
popd
|
||||||
tmpdir="$(mktemp -d)"
|
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_secure_remove --file="$final_path/live"
|
||||||
ynh_exec_as $app mv "$final_path/build/dist" "$final_path/live"
|
mv "$final_path/build/dist" "$final_path/live"
|
||||||
ynh_exec_as $app cp -af "$tmpdir/config.js" "$final_path/live/config.js"
|
cp -af "$tmpdir/config.js" "$final_path/live/config.js"
|
||||||
|
ynh_secure_remove --file="$tmpdir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue