Skip to content

sh4444dow/Nextcloud-Installation-Script

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

45 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Nextcloud Installation Script

GitHub issues GitHub release GitHub stars irc GitHub license

Easy automatic CLI-Installation of Nextcloud

This script features an automatic installation of Nextcloud via CLI.

The script will check if you've already installed a Nextcloud version and if it's the latest release-version (e.g. 11.0.2).

You decide, how you want to install Nextcloud on your server. For example you can set the target directory, SMTP-Credentials,
admin-Username and much more!

Database-Name, Database-password and Admin-password will be generated automatically - due to security reasons. You can also specify everything whitin the "default.json"-file. Simply load the JSON-File with "-c" or "--config" parameter!

Now let the script do it's work.

That's it! Once it's done, visit your website and enjoy Nextcloud!

Usage

wget https://git.io/nextcloud --no-check-certificate -O nextcloud-install.sh && bash nextcloud-install.sh

Usage of script arguments

You can specify some variables before script run.
E.g. you can set the Nextcloud version or the
MySQL root password. If no option is set, the
script will use default variables.

-h --help	display this help and exit
-v --version	specify Nextcloud Version (e.g. 10.0.0)
-p --password	sets the MySQL root password. Type -p "P@s$"
-r --root	sets the MySQL root user
-m --mysqlhost	sets the MySQL Host
-n --name	sets the Nextcloud name, used for Database
-u --url	sets the URL for Nextcloud installation
-d --directory	sets the full installation path
-f --folder sets the desired folder (example.com/folder). May be empty
-s --smtp	setup SMTP during script run (Type -s "y" or -s "n")
-a --apps setup additionals apps during run (Type -a "y" or -a "n")
-c --config	path to JSON config file

If you want to install v9.0.53 for example, use:
./nc_install.sh -v 9.0.53 or ./nc_install.sh --version 9.0.53

Notes

  • Tested on CentOS 6.8 & 7.3
  • Tested on Ubuntu 12.04, 14.04, 16.04
  • Tested on Fedora 23, 24 & 25
  • Tested on Debian 7 & 8

I'm sure it will work on every Linux System, even if I haven't tested it yet :)

Requirements

This script requires the following packages: pv bzip2 rsync php-process bc
The packages will be installed automatically when you run the script.

About

πŸ“œ Easy automatic CLI-Installation of Nextcloud

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%