Files
archlinux/pre/run.sh

19 lines
392 B
Bash

#!/bin/bash
echo "THIS SCRIPT IS BROKEN"
exit 1
REPO=https://git.xo.nl/marcel/archlinux
curl -O $REPO/raw/branch/master/pre/users.crypt
gpg --output users.json --decrypt users.crypt
if test -s ./users.json;
then
archinstall --config $REPO/raw/master/pre/config.json --creds ./users.json --silent
reboot
else
echo "users.json not found in current directory or file is empty"
exit 1
fi