ADMIN_EMAIL and REPO_LOCATION defined in setenv

This commit is contained in:
Blade of Darkness 2019-12-06 15:32:09 +00:00
parent 01683bb523
commit 3bff655fbc
4 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash
ADMIN_EMAIL="root@thunix.net"
CONFIG=./setenv
. $CONFIG
USER=$1
sudo mysqldump -u root $USER > /tmp/$USER.sql

3
makedb
View File

@ -2,7 +2,8 @@
USER=$1
PASSWORD=`pwgen -1B 24`
ADMIN_EMAIL='root@thunix.net'
CONFIG=./setenv
. $CONFIG
sudo mysql -u root << _EOF
CREATE DATABASE $USER;

View File

@ -8,7 +8,6 @@
PROGNAME=${0##*/}
VERSION="0.4"
LIST_NAME="thunix-join@lists.tildeverse.org"
ADMIN_EMAIL="root@thunix.net"
EMAIL_TEMPLATE="tmpl/email.tmpl"
YAML_FILE="$1.yml"
GEN_TDP="./gen_tdp"

View File

@ -8,13 +8,11 @@
PROGNAME=${0##*/}
VERSION="0.4"
LIST_NAME="thunix-join@lists.tildeverse.org"
ADMIN_EMAIL="root@thunix.net"
EMAIL_TEMPLATE="tmpl/email.tmpl"
YAML_FILE="$1.yml"
CONFIG=./setenv
# Set location to your repo for ansible here
# It is only needed for thunix
REPO_LOCATION="/home/ubergeek/repos/ansible/"
. $CONFIG
error_exit() {
echo -e "${PROGNAME}: ${1:-"Unknown Error"}" >&2