mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	zitadel: installer for v4 (#7058)
This commit is contained in:
		@@ -82,6 +82,10 @@ Database:
 | 
				
			|||||||
        RootCert: ""
 | 
					        RootCert: ""
 | 
				
			||||||
        Cert: ""
 | 
					        Cert: ""
 | 
				
			||||||
        Key: ""
 | 
					        Key: ""
 | 
				
			||||||
 | 
					DefaultInstance:
 | 
				
			||||||
 | 
					  Features:
 | 
				
			||||||
 | 
					    LoginV2:
 | 
				
			||||||
 | 
					      Required: false
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
msg_ok "Installed Zitadel Enviroments"
 | 
					msg_ok "Installed Zitadel Enviroments"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -114,7 +118,7 @@ systemctl enable -q zitadel
 | 
				
			|||||||
msg_ok "Created Services"
 | 
					msg_ok "Created Services"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Zitadel initial setup"
 | 
					msg_info "Zitadel initial setup"
 | 
				
			||||||
zitadel start-from-init --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml &>/dev/null &
 | 
					$STD zitadel start-from-init --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml
 | 
				
			||||||
sleep 60
 | 
					sleep 60
 | 
				
			||||||
kill $(lsof -i | awk '/zitadel/ {print $2}' | head -n1)
 | 
					kill $(lsof -i | awk '/zitadel/ {print $2}' | head -n1)
 | 
				
			||||||
useradd zitadel
 | 
					useradd zitadel
 | 
				
			||||||
@@ -123,16 +127,16 @@ msg_ok "Zitadel initialized"
 | 
				
			|||||||
msg_info "Set ExternalDomain to current IP and restart Zitadel"
 | 
					msg_info "Set ExternalDomain to current IP and restart Zitadel"
 | 
				
			||||||
IP=$(ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
 | 
					IP=$(ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
 | 
				
			||||||
sed -i "0,/localhost/s/localhost/${IP}/" /opt/zitadel/config.yaml
 | 
					sed -i "0,/localhost/s/localhost/${IP}/" /opt/zitadel/config.yaml
 | 
				
			||||||
systemctl stop -q zitadel.service
 | 
					systemctl stop -q zitadel
 | 
				
			||||||
zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml &>/dev/null
 | 
					$STD zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml
 | 
				
			||||||
systemctl restart -q zitadel.service
 | 
					systemctl restart -q zitadel
 | 
				
			||||||
msg_ok "Zitadel restarted with ExternalDomain set to current IP"
 | 
					msg_ok "Zitadel restarted with ExternalDomain set to current IP"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Create zitadel-rerun.sh"
 | 
					msg_info "Create zitadel-rerun.sh"
 | 
				
			||||||
cat <<EOF >~/zitadel-rerun.sh
 | 
					cat <<EOF >~/zitadel-rerun.sh
 | 
				
			||||||
systemctl stop zitadel.service
 | 
					systemctl stop zitadel
 | 
				
			||||||
timeout --kill-after=5s 15s zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml
 | 
					timeout --kill-after=5s 15s zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml
 | 
				
			||||||
systemctl restart zitadel.service
 | 
					systemctl restart zitadel
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
msg_ok "Bash script for rerunning Zitadel after changing Zitadel config.yaml"
 | 
					msg_ok "Bash script for rerunning Zitadel after changing Zitadel config.yaml"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user