kulga / flarummanagement

Manage flarum installs
GNU General Public License v2.0
17 stars 10 forks source link

Flarum Management

Master Script

https://raw.githubusercontent.com/kulga/flarummanagement/master/flarum_management

In command line instructions. Should be run by normal user with sudo privileges

wget 'https://raw.githubusercontent.com/kulga/flarummanagement/master/flarum_management' -O flarum_management.sh
chmod u+x flarum_management.sh

Welcome to my 2nd version of a install script for flarum. Some features

Additionally, the script has been split into functions, making it easier to support alternative distros or software.

Additional notes:

Usage examples:

### Invoke help message
./flarum_management
./flarum_management -h
# Install Flarum site mysite.domain.tld; 
# install myextrasite.domain.tld as well (second command)
./flarum_management -f mysite.domain.tld
./flarum_management -f mysite.domain.tld -f myextrasite.domain.tld
# Install flarum site with ssl configured. 
# On a existing install, it reconfigures the flarum site with ssl support.

./flarum_management -sf mysite.domain.tld
# Install LEMP stack; install flarum site with ssl configured as well
./flarum_management -i
./flarum_management -isf mysite.domain.tld
# Remove flarum site; remove ssl certificate for domain as well
./flarum_management -r mysite.domain.tld
./flarum_management -sr mysite.domain.tld
# Install LEMP stack, remove flarum site and its domain certificate and install new flarum
# site with ssl configured.
./flarum_management -isr mysite.domain.tld -f myextrasite.domain.tld