Browse Source

ADMIN_EMAIL and REPO_LOCATION defined in setenv

master
Blade of Darkness 2 years ago
parent
commit
3bff655fbc
  1. 3
      dbremove
  2. 3
      makedb
  3. 1
      makeuser
  4. 6
      makeuser_no_ansible

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

@ -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

@ -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"

6
makeuser_no_ansible

@ -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…
Cancel
Save