Commit 5ea8bd02 authored by Shiva's avatar Shiva
Browse files

Updated script

parent f957f6e5
......@@ -3,14 +3,29 @@ if [ `uname -o` != GNU/Linux ]; then
echo This Script is only for GNU/Linux Operating System
exit
fi
stars='*****************************************\n'
msg="Nextcloud Installation Script\n\n
1) Install Nextcloud\n
2) Configure Nextcloud\n
3) Exit\nYour Selection:"
prin="echo -e $msg"
$prin && read input
case $input in
1)
printf '\nInstalling Nextcloud\n'
printf '\nUpdating your System... \n' && printf $stars
sudo apt update && apt upgrade -y
sudo apt update && sudo apt upgrade -y
printf '\nInstalling snap \n' && printf $stars
sudo apt -y install snapd
printf '\nInstalling snap package of Nextcloud\n' && printf $stars
sudo snap install nextcloud
printf '\nNextcloud is successfully installed\n'
echo 'You can access it from http://localhost' && printf $stars
xdg-open http://localhost
xdg-open http://localhost;;
2) ;;
3) exit;;
*) clear && $prin && read input;;
esac
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment