Add rocky.sh

This commit is contained in:
Laura Hausmann 2023-03-16 23:17:38 +01:00
parent aff65eb047
commit 959c25363d
Signed by untrusted user: zotan
GPG key ID: D044E84C5BE01605

8
rocky.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
dnf install epel-release wget git nano zsh -y
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 share.zotan.services/prezto.sh -L | zsh"
sudo -iu zotan