mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
set relative path for --keep opt
This commit is contained in:
parent
caad09a3cb
commit
cd1a406017
1 changed files with 1 additions and 18 deletions
|
@ -82,25 +82,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=16
|
ynh_script_progression --message="Upgrading source files..." --weight=16
|
||||||
|
|
||||||
# Create a temporary directory
|
|
||||||
#tmpdir="$(mktemp -d)"
|
|
||||||
|
|
||||||
# Backup the config file in the temp dir
|
|
||||||
#cp -a "$final_path/config.json" "$tmpdir/config.json"
|
|
||||||
#cp -a "$final_path/.sequelizerc" "$tmpdir/.sequelizerc"
|
|
||||||
|
|
||||||
# Remove the app directory securely
|
|
||||||
#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
|
||||||
ynh_setup_source --dest_dir=$final_path --keep="$final_path/config.json $final_path/.sequelizerc"
|
ynh_setup_source --dest_dir=$final_path --keep="config.json .sequelizerc"
|
||||||
|
|
||||||
#Copy the admin saved settings from tmp directory to final path
|
|
||||||
#cp -a "$tmpdir/config.json" "$final_path/config.json"
|
|
||||||
#cp -a "$tmpdir/.sequelizerc" "$final_path/.sequelizerc"
|
|
||||||
|
|
||||||
# Remove the tmp directory securely
|
|
||||||
#ynh_secure_remove --file="$tmpdir"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
Loading…
Reference in a new issue