mirror of
https://github.com/YunoHost-Apps/h5ai_ynh.git
synced 2024-09-03 20:36:25 +02:00
20 lines
No EOL
370 B
Bash
20 lines
No EOL
370 B
Bash
#!/bin/bash
|
|
|
|
# Define app
|
|
app=h5ai
|
|
|
|
# Source YunoHost helpers
|
|
. /usr/share/yunohost/helpers
|
|
|
|
# Retrieve app settings
|
|
domain=$(ynh_app_setting_get "$app" domain)
|
|
path=$(ynh_app_setting_get "$app" path)
|
|
|
|
# Remove sources
|
|
sudo rm -rf /var/www/$path
|
|
|
|
# Remove configuration files
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
# Restart services
|
|
sudo service nginx reload |