make install unattended after initial password prompt

This commit is contained in:
ViktorBarzin 2018-01-13 22:15:41 +00:00
parent 6b9eed910f
commit fbee84faa5

View file

@ -1,12 +1,14 @@
#!/bin/bash
echo -n Enter root password:
read -s password
# Install zsh
sudo apt update
sudo apt upgrade
sudo apt upgrade --assume-yes
sudo apt install zsh \
python-pip
# Setup oh-my-zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" && \
echo $password | sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" && \
# Password prompt
# Setup config files