Aligner le paquet sur le modèle YunoHost
This commit is contained in:
parent
1a45355ed3
commit
7ae2307abf
16 changed files with 302 additions and 35 deletions
|
|
@ -1,11 +1,38 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# RESTORE FILES AND DATA
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression "Restoring application files..."
|
||||
|
||||
ynh_restore "$install_dir"
|
||||
ynh_restore "$data_dir"
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression "Restoring system configurations related to $app..."
|
||||
|
||||
ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
ynh_restore "/etc/php/$php_version/fpm/pool.d/$app.conf"
|
||||
|
||||
prepare_persistent_paths
|
||||
install_yunohost_logo
|
||||
ynh_exec_as_app php "$install_dir/scripts/migrate.php"
|
||||
|
||||
ynh_systemctl --service="php$php_version-fpm" --action=reload
|
||||
ynh_systemctl --service=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression "Restoration completed for $app"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue