diff --git a/Makefile b/Makefile index 7ed261d..464f3ad 100644 --- a/Makefile +++ b/Makefile @@ -120,6 +120,10 @@ shell-%: update: @echo "Pulling latest code..." git pull + @if [ ! -f config/mail/mailserver.env ]; then \ + echo "Config missing — running setup first..."; \ + $(MAKE) setup; \ + fi @echo "Rebuilding and restarting services..." PUID=$$(id -u) PGID=$$(id -g) $(DC) up -d --build @echo "Update complete. Run 'make status' to verify."