mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-12-15 23:18:49 +00:00
Merge pull request #59 from DeBrosOfficial/domain-proxy
feat: enhance update mode in installation script to generate missing …
This commit is contained in:
commit
2cbc3034e8
@ -535,6 +535,12 @@ main() {
|
|||||||
configure_firewall
|
configure_firewall
|
||||||
else
|
else
|
||||||
log "Update mode: keeping existing configuration"
|
log "Update mode: keeping existing configuration"
|
||||||
|
# But check if configs are missing and generate them if needed
|
||||||
|
DEBROS_HOME=$(sudo -u "$DEBROS_USER" sh -c 'echo ~')
|
||||||
|
if [ ! -f "$DEBROS_HOME/.debros/bootstrap.yaml" ] || [ ! -f "$DEBROS_HOME/.debros/gateway.yaml" ]; then
|
||||||
|
log "Update mode: detected missing configuration files, generating them..."
|
||||||
|
generate_configs
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
create_systemd_services
|
create_systemd_services
|
||||||
start_services
|
start_services
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user