Rebuild to new setup

This commit is contained in:
2025-08-23 18:27:29 +02:00
parent 74f76ca73d
commit 803da8f958
4 changed files with 34 additions and 26 deletions

20
preinst.sh Normal file
View 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