Archived
1
0
Fork 0

Fix static_html permissions

This commit is contained in:
Daniel Kempkens 2023-03-24 22:36:53 +01:00
parent 02149dbde7
commit e9d7df39a2
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -42,6 +42,7 @@ if [ "$(id -u)" = 0 ]; then
# skin: move dwd icons # skin: move dwd icons
mkdir /data/static_html || true mkdir /data/static_html || true
chmod +x /data/static_html
rm -rf /data/static_html/dwd rm -rf /data/static_html/dwd
cp -r ./public_html/dwd /data/static_html cp -r ./public_html/dwd /data/static_html
chown -R "${WEEWX_UID:-weewx}:${WEEWX_GID:-weewx}" /data/static_html chown -R "${WEEWX_UID:-weewx}:${WEEWX_GID:-weewx}" /data/static_html