diff --git a/add-linux-pass.sh b/add-linux-pass.sh index b330442..3412660 100755 --- a/add-linux-pass.sh +++ b/add-linux-pass.sh @@ -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