mirror of
https://github.com/YunoHost-Apps/chuwiki_ynh.git
synced 2024-09-03 18:16:18 +02:00
Update upgrade
This commit is contained in:
parent
850523975a
commit
4225a3e0b5
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ then
|
||||||
# Create a temporary directory
|
# Create a temporary directory
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
cp -a "$final_path/configuration.ini" "$tmpdir/configuration.ini"
|
cp -a "$final_path/configuration.ini" "$tmpdir/configuration.ini"
|
||||||
cp -a "$final_path/pages/*" "$tmpdir/pages/"
|
cp -a "$final_path/pages" "$tmpdir/pages"
|
||||||
|
|
||||||
ynh_secure_remove --file="$final_path"
|
ynh_secure_remove --file="$final_path"
|
||||||
#Download, check integrity, uncompress and patch the source from app.src
|
#Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
@ -67,7 +67,7 @@ then
|
||||||
|
|
||||||
# Copy the admin saved settings from tmp directory to final config path
|
# Copy the admin saved settings from tmp directory to final config path
|
||||||
cp -a "$tmpdir/configuration.ini" "$final_path/configuration.ini"
|
cp -a "$tmpdir/configuration.ini" "$final_path/configuration.ini"
|
||||||
cp -a "$tmpdir/pages/*" "$final_path/pages/"
|
cp -a "$tmpdir/pages" "$final_path/pages"
|
||||||
# Remove the tmp directory securely
|
# Remove the tmp directory securely
|
||||||
ynh_secure_remove --file="$tmpdir"
|
ynh_secure_remove --file="$tmpdir"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue