1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/airsonic_ynh.git synced 2024-09-03 18:06:14 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-04-02 14:46:46 +02:00
parent 616c15621d
commit 4c72f24a3e

View file

@ -112,7 +112,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=94 ynh_script_progression --message="Upgrading source files..." --weight=94
# 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" ynh_setup_source --dest_dir="$final_path" --keep="airsonic.properties"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"
@ -184,13 +184,13 @@ chown $app $final_path/transcode
#================================================= #=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="../conf/systemd-sysconfig" --destination="/etc/default/$app" #ynh_add_config --template="../conf/systemd-sysconfig" --destination="/etc/default/$app"
chmod 600 "/etc/default/$app" #chmod 600 "/etc/default/$app"
chown $app:$app "/etc/default/$app" #chown $app:$app "/etc/default/$app"
ynh_add_config --template="../conf/airsonic.properties" --destination="$final_path/airsonic.properties" #ynh_add_config --template="../conf/airsonic.properties" --destination="$final_path/airsonic.properties"
chmod 600 "$final_path/airsonic.properties" #chmod 600 "$final_path/airsonic.properties"
chown $app:$app "$final_path/airsonic.properties" #chown $app:$app "$final_path/airsonic.properties"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD