Browse Source

Merge branch '50-noninteractive' into 'master'

Resolve "Noninteractive installations"

Closes #50

See merge request cyber5k/mistborn!29
merge-requests/29/merge
Steven Foerster 6 years ago
parent
commit
4ff9af05f1
  1. 15
      README.md
  2. 2
      scripts/noninteractive/.install_barebones

15
README.md

@ -44,8 +44,8 @@ Within Mistborn is a panel to enable and manage these free extra services (off b
# Quickstart # Quickstart
Tested Operating Systems (in order of thoroughness): Tested Operating Systems (in order of thoroughness):
- Ubuntu 18.04 LTS
- Ubuntu 20.04 LTS - Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Debian 10 (Buster) - Debian 10 (Buster)
- Raspbian Buster - Raspbian Buster
@ -141,6 +141,19 @@ Running `install.sh` will do the following:
- copy Mistborn systemd service files to `/etc/systemd/system` - copy Mistborn systemd service files to `/etc/systemd/system`
- start and enable Mistborn-base - start and enable Mistborn-base
# Non-Interactive Installation
In order to install without interaction some environment variables need to be pre-set.
## Environment Variables
See the environment variables needed in `./scripts/noninteractive/.install_barebones`
## Example Noninteractive Install
This will perform a noninteractive install with the default environment variables set in `.install_barebones`.
```
git clone https://gitlab.com/cyber5k/mistborn.git
sudo bash -c "source ./mistborn/scripts/noninteractive/.install_barebones && ./mistborn/scripts/install.sh"
```
# Post-Installation # Post-Installation
When Mistborn-base starts up it will create volumes, initialize the PostgreSQL database, start pihole, run Django migrations and then check to see if a Mistborn superuser named `admin` exists yet. If not, it will create the superuser `admin` along with an accompanying default Wireguard configuration file and start the Wireguard service. You can watch all of this happen with: When Mistborn-base starts up it will create volumes, initialize the PostgreSQL database, start pihole, run Django migrations and then check to see if a Mistborn superuser named `admin` exists yet. If not, it will create the superuser `admin` along with an accompanying default Wireguard configuration file and start the Wireguard service. You can watch all of this happen with:
``` ```

2
scripts/noninteractive/.install_barebones

@ -0,0 +1,2 @@
export MISTBORN_DEFAULT_PASSWORD=$(python3 -c "import secrets; import string; print(f''.join([secrets.choice(string.ascii_letters+string.digits) for x in range(20)]))")
export MISTBORN_INSTALL_COCKPIT=No
Loading…
Cancel
Save