Update add-linux-pass.sh
This commit is contained in:
@@ -20,9 +20,21 @@ chmod -R 600 /root/.password-store
|
|||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
|
|
||||||
|
|
||||||
echo -e "${idsCL[LightCyan]}You'll need to authorize the git account:${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}You'll need to authorize yourself${idsCL[Default]}\n"
|
||||||
curl -u 'voltron' -L -o /tmp/secret.gpg https://git.schroedercity.com/voltron/private/raw/branch/master/secret.gpg
|
until [ "${gituser}" != "" ]; do
|
||||||
curl -u 'voltron' -L -o /tmp/idsvc.key https://git.schroedercity.com/voltron/private/raw/branch/master/idsvc.key
|
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/secret.gpg
|
||||||
gpg --import /tmp/idsvc.key
|
gpg --import /tmp/idsvc.key
|
||||||
rm -f /tmp/secret.gpg /tmp/idsvc.key
|
rm -f /tmp/secret.gpg /tmp/idsvc.key
|
||||||
|
|||||||
Reference in New Issue
Block a user