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

Update upgrade

This commit is contained in:
ericgaspar 2022-02-08 23:03:57 +01:00
parent b52d5dcaa1
commit 283018d534
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -94,7 +94,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
ynh_setup_source --dest_dir="$final_path" --keep="/etc/default/$app"
fi
chmod 750 "$final_path"
@ -127,13 +127,13 @@ ynh_add_systemd_config
#=================================================
# SETUP CONFIG
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
# ynh_script_progression --message="Adding a configuration file..." --weight=1
touch /etc/default/$app
ynh_add_config --template="../conf/metabase" --destination="/etc/default/$app"
# touch /etc/default/$app
# ynh_add_config --template="../conf/metabase" --destination="/etc/default/$app"
chmod 640 "/etc/default/$app"
chown $app "/etc/default/$app"
# chmod 640 "/etc/default/$app"
# chown $app "/etc/default/$app"
#=================================================
# HANDLE LOG FILES AND LOGROTATE