multiple fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
CODE=https://git.xo.nl/marcel/deploy/raw/branch/master
|
CODE=https://git.xo.nl/marcel/deploy/raw/branch/master
|
||||||
SECRET=https://git.xo.nl/marcel/secret/raw/branch/master
|
SECRET=https://git.xo.nl/marcel/secret/raw/branch/main
|
||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
NOCOL='\033[0m'
|
NOCOL='\033[0m'
|
||||||
@@ -17,11 +17,12 @@ setup)
|
|||||||
read USER
|
read USER
|
||||||
echo -n "Git password: "
|
echo -n "Git password: "
|
||||||
read -s PASS
|
read -s PASS
|
||||||
|
echo
|
||||||
echo -e "${GREEN}Starting setup of $2${NOCOL}"
|
echo -e "${GREEN}Starting setup of $2${NOCOL}"
|
||||||
sleep 2
|
sleep 2
|
||||||
curl -u $USER:$PASS -so /tmp/$2.tmp $SECRET/$2/setup.env
|
curl -u $USER:$PASS -so /tmp/$2.tmp $SECRET/$2/setup.env
|
||||||
bash -c "$(curl -fsSL $CODE/$2/setup.sh)"
|
bash -c "$(curl -fsSL $CODE/$2/setup.sh)"
|
||||||
rm -f /tmp/$1.tmp
|
rm -f /tmp/$2.tmp
|
||||||
exit 0;;
|
exit 0;;
|
||||||
*)
|
*)
|
||||||
echo -r "${RED}application name not entered, exitting${NOCOL}"
|
echo -r "${RED}application name not entered, exitting${NOCOL}"
|
||||||
|
Reference in New Issue
Block a user