diff --git a/debian/weatherstation-chart.postinst b/debian/weatherstation-chart.postinst index 1043214..bb56467 100644 --- a/debian/weatherstation-chart.postinst +++ b/debian/weatherstation-chart.postinst @@ -24,4 +24,9 @@ if [ -e /etc/weatherstation/frontend.conf ]; then fi fi +# Fixperms: +/bin/chown weatherstation:weatherstation /etc/weatherstation/chart.conf +/bin/chmod 440 /etc/weatherstation/chart.conf +/bin/chown weatherstation:weatherstation $LINKTARGET +/bin/chmod 644 $LINKTARGET diff --git a/debian/weatherstation-checksensor.postinst b/debian/weatherstation-checksensor.postinst index bbcc1cb..6f22d9b 100644 --- a/debian/weatherstation-checksensor.postinst +++ b/debian/weatherstation-checksensor.postinst @@ -10,3 +10,7 @@ if ! getent passwd weatherstation >/dev/null 2>&1; then weatherstation echo "." fi + +# Fixperms: +/bin/chown weatherstation:weatherstation /etc/weatherstation/checksensor.conf +/bin/chmod 440 /etc/weatherstation/checksensor.conf diff --git a/debian/weatherstation-frontend.postinst b/debian/weatherstation-frontend.postinst index 5d1bff6..0cb5d13 100644 --- a/debian/weatherstation-frontend.postinst +++ b/debian/weatherstation-frontend.postinst @@ -24,4 +24,9 @@ if [ -e /etc/weatherstation/chart.conf ]; then fi fi + +# Fixperms: +/bin/chown weatherstation:www-data /etc/weatherstation/frontend.conf +/bin/chmod 440 /etc/weatherstation/frontend.conf + #DEBHELPER# diff --git a/debian/weatherstation-weatherd.postinst b/debian/weatherstation-weatherd.postinst index 92fc740..12dee0f 100644 --- a/debian/weatherstation-weatherd.postinst +++ b/debian/weatherstation-weatherd.postinst @@ -10,3 +10,7 @@ if ! getent passwd weatherstation >/dev/null 2>&1; then weatherstation echo "." fi + +# Fixperms: +/bin/chown weatherstation:weatherstation /etc/weatherstation/weatherd.conf +/bin/chmod 440 /etc/weatherstation/weather.conf