Update add-linux-pass.sh

This commit is contained in:
2023-11-23 20:42:48 -06:00
parent ac36fb66a1
commit 517bbd4f9b

View File

@@ -20,9 +20,21 @@ chmod -R 600 /root/.password-store
git config --global credential.helper store
echo -e "${idsCL[LightCyan]}You'll need to authorize the git account:${idsCL[Default]}"
curl -u 'voltron' -L -o /tmp/secret.gpg https://git.schroedercity.com/voltron/private/raw/branch/master/secret.gpg
curl -u 'voltron' -L -o /tmp/idsvc.key https://git.schroedercity.com/voltron/private/raw/branch/master/idsvc.key
echo -e "${idsCL[LightCyan]}You'll need to authorize yourself${idsCL[Default]}\n"
until [ "${gituser}" != "" ]; do
echo -en "${idsCL[LightCyan]}Username: ${idsCL[Default]}"
read gituser
echo
done
until [ "${gitpass}" != "" ]; do
echo -en "${idsCL[LightCyan]}Password: ${idsCL[Default]}"
read gitpass
echo
done
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/idsvc.key https://git.schroedercity.com/voltron/private/raw/branch/master/idsvc.key
gpg --import /tmp/secret.gpg
gpg --import /tmp/idsvc.key
rm -f /tmp/secret.gpg /tmp/idsvc.key