Files
archlinux/preinst.sh

20 lines
456 B
Bash

#!/bin/bash
REPO=https:/git.xo.nl/marcel
NAME=null
PASS=null
echo -n "GIT username: "
read NAME
echo -n "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/archlinux/raw/master/config.json --creds ./users.json --silent
else
echo "users.json not found in current directory or file is empty"
exit 1
fi