mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
19 lines
416 B
Bash
Executable File
19 lines
416 B
Bash
Executable File
#!/bin/bash
|
|
. /openziti/ziti.env
|
|
|
|
"/openziti/create-pki.sh"
|
|
|
|
# create pki
|
|
|
|
# generates the config file for the controller
|
|
"/openziti/create-controller-config.sh"
|
|
|
|
# initialize the database with the admin user:
|
|
ziti-controller edge init "${ZITI_HOME}/controller.yaml" -u "${ZITI_USER}" -p "${ZITI_PWD}"
|
|
|
|
# create a place for the internal db
|
|
mkdir -p $ZITI_HOME/db
|
|
|
|
ziti-controller run "${ZITI_HOME}/controller.yaml"
|
|
|