forked from team/makeuser
ADMIN_EMAIL and REPO_LOCATION defined in setenv
This commit is contained in:
parent
01683bb523
commit
3bff655fbc
3
dbremove
3
dbremove
|
@ -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
3
makedb
|
@ -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;
|
||||
|
|
1
makeuser
1
makeuser
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue