mirror of
https://github.com/YunoHost/example_ynh.git
synced 2024-09-03 20:06:13 +02:00
[enh] Update remove
- Suppression sécurisée de $final_path, ce serait bête un `sudo rm -rf /var/www/` - Et toujours php-fpm par défaut...
This commit is contained in:
parent
13341c538f
commit
fb91137a82
1 changed files with 7 additions and 3 deletions
|
@ -10,15 +10,19 @@ source /usr/share/yunohost/helpers
|
|||
domain=$(ynh_app_setting_get "$app" domain)
|
||||
|
||||
# Remove sources
|
||||
if test -z "$app" || [ "$app" = "/" ]; then
|
||||
echo "Variable app is empty, suppression of app directory cancelled." >&2
|
||||
else
|
||||
sudo rm -rf /var/www/$app
|
||||
fi
|
||||
|
||||
# Remove nginx configuration file
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
### PHP (remove if not used) ###
|
||||
# If a dedicated php-fpm process is used:
|
||||
# sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
||||
# sudo service php5-fpm reload
|
||||
sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
||||
sudo service php5-fpm reload
|
||||
### PHP end ###
|
||||
|
||||
### MySQL (remove if not used) ###
|
||||
|
|
Loading…
Add table
Reference in a new issue