ADMIN_EMAIL and REPO_LOCATION defined in setenv

This commit is contained in:
Naglfar
2019-12-06 15:32:09 +00:00
parent 01683bb523
commit 3bff655fbc
4 changed files with 6 additions and 7 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#!/bin/bash
ADMIN_EMAIL="[email protected]"
CONFIG=./setenv
. $CONFIG
USER=$1
sudo mysqldump -u root $USER > /tmp/$USER.sql
+2 -1
View File
@@ -2,7 +2,8 @@
USER=$1
PASSWORD=`pwgen -1B 24`
ADMIN_EMAIL='[email protected]'
CONFIG=./setenv
. $CONFIG
sudo mysql -u root << _EOF
CREATE DATABASE $USER;
-1
View File
@@ -8,7 +8,6 @@
PROGNAME=${0##*/}
VERSION="0.4"
LIST_NAME="[email protected]"
ADMIN_EMAIL="[email protected]"
EMAIL_TEMPLATE="tmpl/email.tmpl"
YAML_FILE="$1.yml"
GEN_TDP="./gen_tdp"
+2 -4
View File
@@ -8,13 +8,11 @@
PROGNAME=${0##*/}
VERSION="0.4"
LIST_NAME="[email protected]"
ADMIN_EMAIL="[email protected]"
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