-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdate-config.sh
More file actions
executable file
·27 lines (23 loc) · 903 Bytes
/
update-config.sh
File metadata and controls
executable file
·27 lines (23 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -e
echo "=========================================="
echo "WeeWX Configuration Update"
echo "=========================================="
echo "This script will update your WeeWX configuration"
echo "with the current environment variables."
echo ""
# Run the configuration and extensions installation
echo "Running weewx-init container to update configuration and extensions..."
docker compose run --rm weewx-init
echo ""
echo "Configuration updated! Restarting WeeWX service..."
docker compose restart weewx
echo ""
echo "=========================================="
echo "Update complete!"
echo "=========================================="
echo "Your WeeWX configuration and extensions have been updated"
echo "with the current environment variables from .env file."
echo ""
echo "Web interface: http://localhost:${NGINX_PORT:-8080}"
echo "=========================================="