Update add-linux-pass.sh
This commit is contained in:
@@ -8,6 +8,10 @@ else
|
|||||||
source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)"
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d /opt/idssys/nodemgmt ]; then
|
||||||
|
source /opt/idssys/nodemgmt/defaults.inc
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${idsCL[LightGreen]}Adding Linux Pass Sync${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Adding Linux Pass Sync${idsCL[Default]}"
|
||||||
@@ -19,18 +23,22 @@ git clone https://git.schroedercity.com/voltron/ids-linux-pass.git ~/.password-s
|
|||||||
chmod -R 600 /root/.password-store
|
chmod -R 600 /root/.password-store
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
|
|
||||||
|
if [ "${NM_GITUSER}" == "" ] || [ "${NM_GITPASS}" == "" ]; then
|
||||||
echo -e "${idsCL[LightCyan]}You'll need to authorize yourself${idsCL[Default]}\n"
|
echo -e "${idsCL[LightCyan]}You'll need to authorize yourself${idsCL[Default]}\n"
|
||||||
until [ "${gituser}" != "" ]; do
|
until [ "${gituser}" != "" ]; do
|
||||||
echo -en "${idsCL[LightCyan]}Username: ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Username: ${idsCL[Default]}"
|
||||||
read gituser
|
read gituser
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
until [ "${gitpass}" != "" ]; do
|
until [ "${gitpass}" != "" ]; do
|
||||||
echo -en "${idsCL[LightCyan]}Password: ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Password: ${idsCL[Default]}"
|
||||||
read gitpass
|
read gitpass
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
gituser=${NM_GITUSER}
|
||||||
|
gitpass=${NM_GITPASS}
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
curl -u "${gituser}:${gitpass}" -L -o /tmp/secret.gpg https://git.schroedercity.com/voltron/private/raw/branch/master/secret.gpg
|
curl -u "${gituser}:${gitpass}" -L -o /tmp/secret.gpg https://git.schroedercity.com/voltron/private/raw/branch/master/secret.gpg
|
||||||
|
|||||||
Reference in New Issue
Block a user