Giter VIP home page Giter VIP logo

nextcloud-installation-script's Introduction

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! If you don't want to use the JSON-File, you can also edit the variables.sh file.

Now let the script do it's work.

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

Usage

Check out the Wiki: https://github.com/PietsHost/Nextcloud-Installation-Script/wiki
At first setup a LAMP Server and all PHP-Extensions required by Nextcloud!

Afterwards download or clone this repository.

After that, set +x to the script and run it:

chmod +x ./nc_install.sh
./nc_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
--cron  enable automatic cronjob (Type --cron "true")
-i --icon specify path of you own favicon.ico 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 json
The packages will be installed automatically when you run the script.

nextcloud-installation-script's People

Contributors

pietshost avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.