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