Files
archlinux/preinst.sh

21 lines
463 B
Bash

#!/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