1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mytinytodo_ynh.git synced 2024-09-03 19:46:01 +02:00

set relative path for --keep opt (#36)

This commit is contained in:
Éric Gaspar 2022-08-16 07:50:30 +02:00 committed by GitHub
parent 63ce091eb0
commit 95e4e8613c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View file

@ -22,7 +22,7 @@
"email": "pierre.levasseur@free.fr"
},
"requirements": {
"yunohost": ">= 4.3.0"
"yunohost": ">= 11.0.9"
},
"multi_instance": false,
"services": [

View file

@ -93,15 +93,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=2
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/db/config.php"
# Remove the tmp directory securely
#nh_secure_remove --file="$tmpdir"
ynh_exec_warn_less ynh_add_config --template="../conf/config.php" --destination="$final_path/db/config.php"
ynh_setup_source --dest_dir="$final_path" --keep="db/config.php"
fi
chmod 750 "$final_path"