Fix: Service management errors in sigvild-gallery restoration
- Fix Unix timestamp conversion in restore.yml using proper strftime syntax - Add service existence check before stopping sigvild-gallery service - Fix systemd service template environment variable syntax error - Add proper error handling for fresh deployments where service doesn't exist yet Resolves service management failures during restoration on fresh VPS installations.
This commit is contained in:
@@ -10,7 +10,7 @@ WorkingDirectory={{ sigvild_gallery_home }}
|
||||
ExecStart={{ sigvild_gallery_binary }} serve --http={{ sigvild_gallery_host }}:{{ sigvild_gallery_port }}
|
||||
|
||||
# Environment variables
|
||||
Environment="SIGVILD_ENVIRONMENT"="production" # Lets caddy handle CORS
|
||||
Environment="SIGVILD_ENVIRONMENT"="production"
|
||||
Environment="HOST_USERNAME={{ sigvild_gallery_host_username }}"
|
||||
Environment="HOST_PASSWORD={{ sigvild_gallery_host_password }}"
|
||||
Environment="HOST_DISPLAY_NAME=Wedding Host"
|
||||
|
||||
Reference in New Issue
Block a user