qr_ynh/scripts/restore

16 lines
659 B
Plaintext
Raw Permalink Normal View History

2019-08-13 21:35:51 +02:00
#!/bin/bash
source ../settings/scripts/_common.sh
2019-08-13 21:35:51 +02:00
source /usr/share/yunohost/helpers
2022-03-03 17:58:37 +01:00
ynh_script_progression --message="Restoring the app main directory..."
2023-07-08 22:28:20 +02:00
ynh_restore_file --origin_path="$install_dir"
libreqr_apply_filesystem_permissions
2019-08-13 21:35:51 +02:00
2022-03-05 02:39:55 +01:00
ynh_script_progression --message="Restoring the PHP-FPM configuration..."
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
2019-08-13 21:35:51 +02:00
ynh_script_progression --message="Restoring the NGINX configuration..."
2022-03-05 15:05:40 +01:00
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_systemd_action --service_name=nginx --action=reload