Rebuild to new setup
This commit is contained in:
20
preinst.sh
Normal file
20
preinst.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
REPO=https:/git.xo.nl/marcel
|
||||
NAME=null
|
||||
PASS=null
|
||||
|
||||
echo "GIT username: "
|
||||
read NAME
|
||||
echo -s "GIT password: "
|
||||
read -s PASS
|
||||
curl -u $NAME:$PASS -O $REPO/secrets/raw/branch/main/users/users.crypt
|
||||
gpg --output users.json --decrypt users.crypt
|
||||
if test -s ./users.json
|
||||
then
|
||||
archinstall --config $REPO/archinstall/raw/master/config.json --creds ./users.json --silent
|
||||
reboot
|
||||
else
|
||||
echo "users.json not found in current directory or file is empty"
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user