minor bug fixes
This commit is contained in:
parent
8c86f71718
commit
6647754444
1 changed files with 3 additions and 4 deletions
|
@ -48,8 +48,7 @@ apt-get install -y \
|
||||||
unzip \
|
unzip \
|
||||||
rsync \
|
rsync \
|
||||||
dropbear \
|
dropbear \
|
||||||
openssh-client \
|
openssh-client
|
||||||
rxvt-unicode-terminfo
|
|
||||||
|
|
||||||
read -p "|> enter additional packages to install: " packages
|
read -p "|> enter additional packages to install: " packages
|
||||||
[[ "$packages" ]] && packages="$(printf "$packages" | tr '\n' ' ')" && apt-get install -y $packages
|
[[ "$packages" ]] && packages="$(printf "$packages" | tr '\n' ' ')" && apt-get install -y $packages
|
||||||
|
@ -127,9 +126,9 @@ printf "|>> debian install script finished!\n"
|
||||||
printf "|>> remote access: 'ssh $user@$(ip -f inet -o address | awk '/eth0/ {print $4}' | cut -d "/" -f1)'\n"
|
printf "|>> remote access: 'ssh $user@$(ip -f inet -o address | awk '/eth0/ {print $4}' | cut -d "/" -f1)'\n"
|
||||||
|
|
||||||
read -p "|> would you like to delete the install script? [YES/no] " prompt
|
read -p "|> would you like to delete the install script? [YES/no] " prompt
|
||||||
[[ "$prompt" ]] && prompt="$(printf "$prompt" | tr "[:lower:]")"
|
[[ "$prompt" ]] && prompt="${prompt,,}"
|
||||||
[[ ! "$prompt" ]] || [[ "$prompt" == "y" ]] || [[ "prompt" == "yes" ]] && printf "|> deleting script '$0'...\n" && rm -f "$0"
|
[[ ! "$prompt" ]] || [[ "$prompt" == "y" ]] || [[ "prompt" == "yes" ]] && printf "|> deleting script '$0'...\n" && rm -f "$0"
|
||||||
|
|
||||||
read -p "|> would you like to reboot now? [YES/no] " prompt
|
read -p "|> would you like to reboot now? [YES/no] " prompt
|
||||||
[[ "$prompt" ]] && prompt="$(printf $prompt | tr "[:lower:]")"
|
[[ "$prompt" ]] && prompt="${prompt,,}"
|
||||||
[[ ! "$prompt" ]] || [[ "$prompt" == "y" ]] || [[ "$prompt" == "yes" ]] && printf "|> rebooting now!\n" && reboot
|
[[ ! "$prompt" ]] || [[ "$prompt" == "y" ]] || [[ "$prompt" == "yes" ]] && printf "|> rebooting now!\n" && reboot
|
||||||
|
|
Loading…
Reference in a new issue