blob: a9eff68bad12b8b1fb59bdaf9b8d3f3d451659b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
post_install() {
echo -n Generating masterkey for zitadel...
if [ ! -f /etc/zitadel/master.key ]; then tr -dc A-Za-z0-9 </dev/urandom | head -c 32 > /etc/zitadel/master.key && echo Done || echo Error!; else echo File already exists!; fi
echo -n "
Before starting zitadel.service, you need to initialize your instance. Check your init.yaml and config.yaml and run:
# USER=zitadel HOME=/var/lib/zitadel zitadel start-from-init --steps /etc/zitadel/init.yaml --config /etc/zitadel/config.yaml --masterkeyFile /etc/zitadel/master.key --tlsMode external
"
}
post_upgrade() {
echo -n "Before [re]starting zitadel.service, you need upgrade you instance:
# zitadel setup --config /etc/zitadel/config.yaml --masterkeyFile /etc/zitadel/master.key --tlsMode external"
}
|