1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ampache_ynh.git synced 2024-09-03 18:15:55 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2022-04-10 07:36:26 +02:00
parent 093e4dff8e
commit 3e80f7925b

View file

@ -97,6 +97,10 @@ then
ynh_setup_source --dest_dir="$final_path"
fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -131,6 +135,8 @@ then
ynh_script_progression --message="Upgrading Ampache configuration..."
ynh_add_config --template="../conf/ampache.cfg.php" --destination="$final_path/config/ampache.cfg.php"
chmod 600 "$final_path/config/ampache.cfg.php"
chown $app:$app "$final_path/config/ampache.cfg.php"
#=================================================
# UPDATE AMPACHE WITH COMPOSER
@ -170,17 +176,6 @@ then
sleep 1
fi
#=================================================
# GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
ynh_script_progression --message="Securing files and directories..."
# Set permissions on app files
chown -R $app:$app $final_path
chmod 600 $final_path/config/ampache.cfg.php
#=================================================
# SETUP SSOWAT
#=================================================