mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-01-24 05:30:18 +00:00
One setenv to rule them all!
This commit is contained in:
2
gen_tdp
2
gen_tdp
@@ -12,7 +12,7 @@
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
CONFIG=./setenv.sh
|
CONFIG=./setenv
|
||||||
|
|
||||||
if [ ! -f "$CONFIG" ]; then
|
if [ ! -f "$CONFIG" ]; then
|
||||||
echo "Config file does not exist, or not at the location specified. Please create the file, or correct the location."
|
echo "Config file does not exist, or not at the location specified. Please create the file, or correct the location."
|
||||||
|
|||||||
3
makeuser
3
makeuser
@@ -13,8 +13,9 @@ EMAIL_TEMPLATE="tmpl/email.tmpl"
|
|||||||
YAML_FILE="$1.yml"
|
YAML_FILE="$1.yml"
|
||||||
GEN_TDP="./gen_tdp"
|
GEN_TDP="./gen_tdp"
|
||||||
TILDE_JSON="/var/www/thunix.cf/tilde.json"
|
TILDE_JSON="/var/www/thunix.cf/tilde.json"
|
||||||
|
CONFIG=./setenv
|
||||||
|
|
||||||
. ./setenv
|
. $CONFIG
|
||||||
|
|
||||||
error_exit() {
|
error_exit() {
|
||||||
echo -e "${PROGNAME}: ${1:-"Unknown Error"}" >&2
|
echo -e "${PROGNAME}: ${1:-"Unknown Error"}" >&2
|
||||||
|
|||||||
6
setenv
Executable file → Normal file
6
setenv
Executable file → Normal file
@@ -1,3 +1,9 @@
|
|||||||
# Set location to your repo for ansible here
|
# Set location to your repo for ansible here
|
||||||
# It is only needed for thunix
|
# It is only needed for thunix
|
||||||
export REPO_LOCATION="/home/ubergeek/repos/ansible/"
|
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."
|
||||||
|
|||||||
10
setenv.sh
10
setenv.sh
@@ -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."
|
|
||||||
Reference in New Issue
Block a user