FEATURE: task for creating and setting up a new user added, supplementary scripts and configs added
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
FILE=/home/$USER/.oh-my-zsh/oh-my-zsh.sh
|
||||
if [ -f "$FILE" ]; then
|
||||
echo "$FILE exists and we not installing ohmyzsh"
|
||||
exit 0
|
||||
else
|
||||
echo "$FILE does not exist and we install ohmyzsh"
|
||||
cd /home/max
|
||||
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
|
||||
chmod +x /home/max/install.sh
|
||||
timeout -s 15 -k 30s 20s /home/max/install.sh --unattendend --keep-zshrc || exit 0
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user