mirror of
https://github.com/YunoHost-Apps/minchat_ynh.git
synced 2024-09-03 19:36:29 +02:00
22 lines
No EOL
460 B
Bash
22 lines
No EOL
460 B
Bash
#!/bin/bash
|
|
|
|
# Exit on command errors and treat unset variables as an error
|
|
set -u
|
|
|
|
# Source app helpers
|
|
source ./_common
|
|
source /usr/share/yunohost/helpers
|
|
|
|
# Get multi-instances specific variables
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
# Retrieve arguments
|
|
domain=$(ynh_app_setting_get "$app" domain)
|
|
|
|
ynh_secure_remove /var/www/$app
|
|
ynh_secure_remove /etc/nginx/conf.d/$domain.d/$app.conf
|
|
ynh_remove_fpm_config
|
|
|
|
ynh_system_user_delete $app
|
|
|
|
sudo systemctl reload nginx |