From 959c25363dbb546be9a723248119e7fa322b348e Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 16 Mar 2023 23:17:38 +0100 Subject: [PATCH] Add rocky.sh --- rocky.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 rocky.sh diff --git a/rocky.sh b/rocky.sh new file mode 100644 index 0000000..c85d8eb --- /dev/null +++ b/rocky.sh @@ -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