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

Fix restore: there is no app service

This commit is contained in:
tituspijean 2023-09-17 19:00:12 +02:00
parent acd18af038
commit 02b0847e8e
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -22,11 +22,11 @@ chown -R $app:www-data "$install_dir"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
#ynh_script_progression --message="Restoring the data directory..." --weight=1
ynh_script_progression --message="Restoring the data directory..." --weight=1
#ynh_restore_file --origin_path="$data_dir" --not_mandatory
ynh_restore_file --origin_path="$data_dir" --not_mandatory
#chown -R $app:www-data "$data_dir"
chown -R $app:www-data "$data_dir"
#=================================================
# RESTORE THE MYSQL DATABASE
@ -54,7 +54,6 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
# Typically you only have either $app or php-fpm but not both at the same time...
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
ynh_systemd_action --service_name=nginx --action=reload