Merge pull request #59 from DeBrosOfficial/domain-proxy

feat: enhance update mode in installation script to generate missing …
This commit is contained in:
anonpenguin 2025-10-25 14:36:52 +03:00 committed by GitHub
commit 2cbc3034e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -535,6 +535,12 @@ main() {
configure_firewall
else
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
create_systemd_services
start_services