1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lxd-dashboard_ynh.git synced 2024-09-03 19:36:18 +02:00

fix rm -rf

This commit is contained in:
yalh76 2022-03-01 19:59:06 +01:00
parent c967cbb792
commit a19ce9267e
2 changed files with 3 additions and 13 deletions

View file

@ -1,7 +0,0 @@
<?php
define( 'DB_TYPE', 'mysql' );
define( 'DB_NAME', '__DB_NAME__' );
define( 'DB_USER', '__DB_USER__' );
define( 'DB_PASSWORD', '__DB_PWD__' );
define( 'DB_HOST', 'localhost' );
?>

View file

@ -44,12 +44,9 @@ ynh_secure_remove --file="$final_path"
# REMOVE DATA DIR
#=================================================
# Remove the data directory if --purge option is used
if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
then
ynh_script_progression --message="Removing app data directory..."
rm -rf "$datadir"
fi
ynh_script_progression --message="Removing app data directory..."
ynh_secure_remove --file="$datadir/data"
ynh_secure_remove --file="$datadir/backups"
#=================================================
# REMOVE NGINX CONFIGURATION