Move database functions

This commit is contained in:
Naglfar
2022-03-29 19:18:57 +02:00
parent e270446e84
commit 62ba8078bd
4 changed files with 30 additions and 30 deletions

View File

@@ -2,7 +2,7 @@
CONFIG=./setenv
. $CONFIG
. include/functions.DB
. include/functions
USER=$1
DATABASE=$1
@@ -12,7 +12,7 @@ then
echo -e "delete database/s for given username."
echo -e "usage: $(basename $0) <username>"
else
backup_database
drop_database
database_backup
database_remove
echo "The databases for $USER has been archived, and removed." | sudo mail -s "Database for $USER has been removed" $ADMIN_EMAIL
fi