mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
package-fixes
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@175 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
+10
@@ -20,10 +20,20 @@ if [ -e /etc/weatherstation/chart.conf ]; then
|
||||
echo -n "Lege Link zu den Bildern an ... "
|
||||
/bin/ln -s -f $LINKTARGET $LINKNAME
|
||||
echo "done"
|
||||
/bin/chown weatherstation:www-data $LINKTARGET
|
||||
/bin/chmod 750 $LINKTARGET
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! getent passwd weatherstation >/dev/null 2>&1; then
|
||||
echo -n "Creating user/group 'weatherstation'" >&2
|
||||
adduser --quiet --system --group --no-create-home \
|
||||
--disabled-password --disabled-login \
|
||||
--shell /bin/false \
|
||||
weatherstation
|
||||
echo "."
|
||||
fi
|
||||
|
||||
# Fixperms:
|
||||
/bin/chown weatherstation:www-data /etc/weatherstation/frontend.conf
|
||||
|
||||
Reference in New Issue
Block a user