mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-01-24 05:30:18 +00:00
15 lines
243 B
Bash
Executable File
15 lines
243 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CONFIG=./setenv
|
|
. $CONFIG
|
|
. include/functions.DB
|
|
|
|
USER=$1
|
|
DATABASE=$1
|
|
|
|
dump_database
|
|
drop_database
|
|
|
|
echo "The databases for $USER has been archived, and removed." | sudo mail -s "Database for $USER has been removed" $ADMIN_EMAIL
|
|
|