regen script

This commit is contained in:
Steven Foerster
2021-03-06 09:30:18 -05:00
parent d0a70d60a6
commit 7800935cf7
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# must be run as mistborn
if [[ $(whoami) != 'mistborn' ]]; then
echo "This must be run as mistborn"
exit 1
fi
# input arguments
export MISTBORN_DEFAULT_PASSWORD="$1"
# set paths
export MISTBORN_HOME=/opt/mistborn
export MISTBORN_ENV_SCRIPT=${MISTBORN_HOME}/scripts/subinstallers/gen_prod_env.sh