Browse Source

noninteractive script

merge-requests/29/head
Steven Foerster 6 years ago
parent
commit
85007a8921
  1. 12
      README.md
  2. 2
      scripts/noninteractive/.install_barebones

12
README.md

@ -141,6 +141,18 @@ 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`
## Install
```
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 @@
MISTBORN_DEFAULT_PASSWORD=$(python3 -c "import secrets; import string; print(f''.join([secrets.choice(string.ascii_letters+string.digits) for x in range(20)]))")
MISTBORN_INSTALL_COCKPIT=No
Loading…
Cancel
Save