1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rainloop_ynh.git synced 2024-09-03 20:16:18 +02:00

Use of secure remove

This commit is contained in:
polytan02 2017-02-24 12:13:59 +00:00
parent b2d0e25836
commit 3257e543a2

View file

@ -15,10 +15,10 @@
ynh_mysql_drop_db "$dbname" 2>&1 || true
ynh_mysql_drop_user "$dbuser" 2>&1 || true
# Delete app directory and configurations
sudo rm -rf "/var/www/${app}"
sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"
# Delete app directory and configurations using secure remove
SECURE_REMOVE '/var/www/${app}'
REMOVE_NGINX_CONF
REMOVE_FPM_CONF
# Remove GPG key
sudo gpg --batch --delete-key --yes Rainloop