Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cohort 6 Team 12
Nextcloud Installation Script
Commits
5ea8bd02
Commit
5ea8bd02
authored
Nov 25, 2021
by
Shiva
Browse files
Updated script
parent
f957f6e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
nc.sh
View file @
5ea8bd02
...
...
@@ -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
\n
Your 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment