20 lines
318 B
Bash
20 lines
318 B
Bash
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
# Setup process
|
||
|
|
|
||
|
|
|
||
|
|
# Check if .env exists
|
||
|
|
|
||
|
|
|
||
|
|
## if not create .env and start guided setup
|
||
|
|
### Check dependencies e.g. openssl/libressl
|
||
|
|
|
||
|
|
#### Generate key
|
||
|
|
openssl rand -base64 32
|
||
|
|
|
||
|
|
# Check is there is new version and offer to download
|
||
|
|
## if .env exists but is and old version then Update and get user input
|
||
|
|
|
||
|
|
|
||
|
|
|