diff --git a/gen_tdp b/gen_tdp index dcb5ea0..8524f0c 100755 --- a/gen_tdp +++ b/gen_tdp @@ -12,7 +12,7 @@ # ############################################################################### -CONFIG=./setenv.sh +CONFIG=./setenv if [ ! -f "$CONFIG" ]; then echo "Config file does not exist, or not at the location specified. Please create the file, or correct the location." diff --git a/makeuser b/makeuser index 1171d92..08fdedd 100755 --- a/makeuser +++ b/makeuser @@ -13,8 +13,9 @@ EMAIL_TEMPLATE="tmpl/email.tmpl" YAML_FILE="$1.yml" GEN_TDP="./gen_tdp" TILDE_JSON="/var/www/thunix.cf/tilde.json" +CONFIG=./setenv -. ./setenv +. $CONFIG error_exit() { echo -e "${PROGNAME}: ${1:-"Unknown Error"}" >&2 diff --git a/setenv b/setenv old mode 100755 new mode 100644 index 79ae85c..18cf181 --- a/setenv +++ b/setenv @@ -1,3 +1,9 @@ # Set location to your repo for ansible here # It is only needed for thunix export REPO_LOCATION="/home/ubergeek/repos/ansible/" +export SITE_TITLE="Thunix" +export SITE="https://thunix.net" +export WANT_USERS="true" +export ADMIN_EMAIL="root@thunix.net" +export SIGNUP_URL="https://thunix.net/signup" +export DESCRIPTION="Thunix is a community, centered around access to a public *nix system. Thunix offers shell accounts with complete set of programming tools, and follows a continuous integration-continuous deployment of system configuration." diff --git a/setenv.sh b/setenv.sh deleted file mode 100644 index eee6c26..0000000 --- a/setenv.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Here is where you set config variables. - -export SITE_TITLE="Thunix" -export SITE="https://thunix.net" -export WANT_USERS="true" -export ADMIN_EMAIL="root@thunix.net" -export SIGNUP_URL="https://thunix.net/signup" -export DESCRIPTION="Thunix is a community, centered around access to a public *nix system. Thunix offers shell accounts with complete set of programming tools, and follows a continuous integration-continuous deployment of system configuration."