From dea32fe285da64cd0511dc91db92833d9e874cdd Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 17 Mar 2023 00:11:40 +0100 Subject: [PATCH] Fix sudo calls --- rocky.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rocky.sh b/rocky.sh index 773485b..ddbb8eb 100644 --- a/rocky.sh +++ b/rocky.sh @@ -4,7 +4,7 @@ sudo dnf install epel-release wget git nano zsh -y sudo groupadd sudo sudo bash -c 'echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' sudo useradd -md /home/zotan -s /bin/zsh -UG sudo zotan -sudo -u zotan "mkdir /home/zotan/.ssh" -sudo -u zotan "wget -O /home/zotan/.ssh/authorized_keys share.zotan.services/authorized_keys" -sudo -u zotan "curl ztn.sh/prezto.sh -L | zsh" +sudo -u zotan mkdir /home/zotan/.ssh +sudo -u zotan wget -O /home/zotan/.ssh/authorized_keys share.zotan.services/authorized_keys +sudo -u zotan bash -c 'curl ztn.sh/prezto.sh -L | zsh' sudo -iu zotan