Create add-linux-pass.sh
This commit is contained in:
22
add-linux-pass.sh
Executable file
22
add-linux-pass.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source /dev/stdin <<< "$(curl -sL http://go.scity.us/colorsinc)"
|
||||
source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)"
|
||||
|
||||
|
||||
echo ""
|
||||
echo -e "${idsCL[LightGreen]}Adding Linux Pass Sync${idsCL[Default]}"
|
||||
echo ""
|
||||
|
||||
apt -y install pass git curl
|
||||
|
||||
git clone https://git.schroedercity.com/voltron/ids-linux-pass.git ~/.password-store
|
||||
chmod -R 600 /root/.password-store
|
||||
|
||||
echo -e "${idsCL[LightCyan]}You'll need to enter the password for the git account:${idsCL[Default]}"
|
||||
curl -u 'voltron' -L -o /tmp/secret.gpg https://git.schroedercity.com/voltron/private/raw/branch/master/secret.gpg
|
||||
gpg --import /tmp/secret.gpg
|
||||
rm -f /tmp/secret.gpg
|
||||
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user