1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00
This commit is contained in:
ericgaspar 2022-01-15 10:32:11 +01:00
parent d6df1cb7f8
commit a38f1a8e8e
3 changed files with 3 additions and 13 deletions

View file

@ -37,7 +37,6 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
# Set variable # Set variable
path_url="/SOGo" path_url="/SOGo"
# final_path="/opt/yunohost/$app"
# Register (book) web path # Register (book) web path
ynh_webpath_register --app $app --domain $domain --path_url $path_url ynh_webpath_register --app $app --domain $domain --path_url $path_url

View file

@ -59,14 +59,6 @@ ynh_script_progression --message="Removing the MySQL database..." --weight=1
# Remove a database if it exists, along with the associated user # Remove a database if it exists, along with the associated user
ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name
#=================================================
# REMOVE APP MAIN DIR
#=================================================
ynh_script_progression --message="Removing app main directory..." --weight=1
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION
#================================================= #=================================================

View file

@ -35,11 +35,11 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name db_user=$db_name
#================================================= #=================================================
# CHECK IF THE APP CAN BE RESTORED # RESTORE THE NGINX CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1 ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path " ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# REINSTALL DEPENDENCIES # REINSTALL DEPENDENCIES
@ -107,5 +107,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Restoration completed for $app" --last ynh_script_progression --message="Restoration completed for $app" --last