From fb849b1032cadfb344ae1cb2a13da13554146205 Mon Sep 17 00:00:00 2001 From: Naglfar Date: Wed, 30 Mar 2022 19:54:22 +0200 Subject: [PATCH] Fix database name in email --- include/dbemail.tmpl | 2 +- makedb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dbemail.tmpl b/include/dbemail.tmpl index ee22c3e..b472b96 100644 --- a/include/dbemail.tmpl +++ b/include/dbemail.tmpl @@ -3,5 +3,5 @@ Hello _username_; Your database has been provisioned. Information below should be used to connect to it: Database name: _username_ -Database user: _username_ +Database user: _databasename_ Password: _password_ diff --git a/makedb b/makedb index beb8249..74fe915 100755 --- a/makedb +++ b/makedb @@ -20,6 +20,6 @@ then echo -e "usage: $(basename $0) [database name]" else database_create - sed -e "s/_username_/$USER/g" -e "s/_password_/$PASSWORD/g" include/dbemail.tmpl | sudo mail -s "Your database has been provisioned" $USER@thunix.net - sed -e "s/_username_/$USER/g" -e "s/_password_/$PASSWORD/g" include/dbemail.tmpl | sudo mail -s "Your database has been provisioned" $ADMIN_EMAIL + sed -e "s/_username_/$USER/g" -e "s/_databasename_/$DATABASE/g" -e "s/_password_/$PASSWORD/g" include/dbemail.tmpl | sudo mail -s "Your database has been provisioned" $USER@thunix.net + sed -e "s/_username_/$USER/g" -e "s/_databasename_/$DATABASE/g" -e "s/_password_/$PASSWORD/g" include/dbemail.tmpl | sudo mail -s "Your database has been provisioned" $ADMIN_EMAIL fi