Update cm4-dashboard.service to include CM4_PROVISIONING_DIR environment variable and modify deploy-dashboard-to-lxc.sh to install systemd unit before restarting the service, enhancing deployment process and configuration management.
This commit is contained in:
@@ -11,6 +11,8 @@ ExecStart=/usr/bin/python3 -m flask --app app run --host=0.0.0.0 --port=5000
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
Environment=FLASK_ENV=production
|
||||
# Data dir (portal-files, backups, etc.); override in dashboard.env if needed
|
||||
Environment=CM4_PROVISIONING_DIR=/var/lib/cm4-provisioning
|
||||
EnvironmentFile=-/opt/cm4-provisioning/dashboard.env
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user