Fix scriptz

This commit is contained in:
idanoo 2022-10-11 23:24:48 +13:00
parent 12409675a2
commit aeb7459d9e
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -18,7 +18,7 @@ sudo cat << EOF > /usr/local/bin/check_keys
#!/bin/bash
# Attempt to pull new keys
KEYS=$(wget -q -O /etc/ssh/temp/credshttps://m2.nz/authorized_keys || curl -sSo /etc/ssh/temp/creds https://m2.nz/authorized_keys)
KEYS=$(wget -q -O /etc/ssh/temp/creds https://m2.nz/authorized_keys || curl -sSo /etc/ssh/temp/creds https://m2.nz/authorized_keys)
if [[ "$KEYS" == ssh* ]]; then
echo $KEYS > /etc/ssh/temp/creds
fi