Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soilah/nextcloud-auto-installer

Nextcloud auto installation bash script
https://github.com/soilah/nextcloud-auto-installer

bash bash-script install-script installation installer nextcloud

Last synced: 3 months ago
JSON representation

Nextcloud auto installation bash script

Awesome Lists containing this project

README

        

# Nextcloud auto installer

## This is a bash script that automates the installation of nextcloud

## Assumptions/Requirements

This script works with the Nginx Web Server only. Apache is not supported. The script will install nginx if not already installed. A copy of an nginx configuration for nextcloud exists in the root directory and is used by the script in order to change the virtual host name and copy it at /etc/nginx/sites-enabled.

## Notes

This script installs nextcloud as HTTP only, in order to be placed behind a proxy server (e.g. HaProxy). HTTPS needs to be configured respectively at the proxy with the corresponding domain.

## Usage
### Installation

Install nextcloud by running the nextcloud_auto.sh script. During the installation procedure you will be asked for the domain name of the nextcloud instance. This needs to be the same as the one that has been configured at the proxy server (with a valid ssl certificate). The installer will also ask you to enter the database name, user and password. Leave them blank to use the defaults. The database name, user and password will be printed after being created so you have to make sure to remember them, because you will need to enter them the first time you access the website. It is best to copy them immediately!

### Uninstall

Run the script uninstall_nextcloud.sh. It will delete ** EVERYTHING **, meaning that the database and user will be dropped, as well as the nextcloud folder WITH THE DATA.

### TO DO LIST
- Add support to install nextloud with https (without proxy with domain name)
- Add option to install the data to different directory than the default.
- Add options to keep database data?, or data folder after uninstall.
- Add function to check if previous parts from previous installation exists (data folder,...)