forked from zotan/os-bootstrap-core
Fix sudo calls
This commit is contained in:
parent
840f0044de
commit
dea32fe285
6
rocky.sh
6
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
|
||||
|
|
Loading…
Reference in a new issue