diff --git a/saretlinux.sh b/saretlinux.sh index a207c5b..020ff28 100644 --- a/saretlinux.sh +++ b/saretlinux.sh @@ -17,11 +17,11 @@ if [ "$(ls /home |grep saret)" != "saret" ]; then chown $username:$username /SSH -R chmod au+xwr /SSH -R mkdir -p /home/saret/.ssh 2>/dev/null + touch /home/saret/.ssh/authorized_keys for p in ${pubs[@]}; do - curl -sSL https://git.saret.tk/saret/clientlinux/raw/branch/main/$p -o /home/saret/.ssh/$p + curl -sSL https://git.saret.tk/saret/clientlinux/raw/branch/main/$p |tee -a /home/saret/.ssh/authorized_keys done chown saret:saret /home/saret/.ssh -R - touch /home/saret/.ssh/authorized_keys # Debian Machine pubs=(AzureSSH.pub CloudConsole.pub DebianGithub.pub DebianMachine.pub KorenSSH.pub LibreGithub.pub OracleServerGitHub.pub VisualStudio.pub Windows2Github.pub WindowsGithub.pub WindowsMachine.pub phoney.pub) sudo reboot