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