mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 14:58:00 +00:00
last Bugfixes
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@188 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
Vendored
+2
-1
@@ -1,12 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
if ( [ ! -e /etc/weatherstation/checksensor.conf ] && [ ! -e /etc/weatherstation/weatherd.conf ] && [ ! -e /etc/weatherstation/frontend.conf ] ); then
|
||||
if getent passwd weatherstation >/dev/null 2>&1; then
|
||||
echo -n "delete user weatherstation ... "
|
||||
deluser --quiet weatherstation 2>/dev/null || true
|
||||
echo "done"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e /etc/weatherstation/frontend.conf ]; then
|
||||
LINKNAME="/usr/share/weatherstation-frontend/$(grep default_chart_dir /etc/weatherstation/frontend.conf | cut -f 2 -d "'" | cut -f 2 -d '"')"
|
||||
|
||||
+2
@@ -2,8 +2,10 @@
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
if ( [ ! -e /etc/weatherstation/chart.conf ] && [ ! -e /etc/weatherstation/weatherd.conf ] && [ ! -e /etc/weatherstation/frontend.conf ] ); then
|
||||
if getent passwd weatherstation >/dev/null 2>&1; then
|
||||
echo -n "delete user weatherstation ... "
|
||||
deluser --quiet weatherstation 2>/dev/null || true
|
||||
echo "done"
|
||||
fi
|
||||
fi
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
#DEBHELPER#
|
||||
if ( [ ! -e /etc/weatherstation/checksensor.conf ] && [ ! -e /etc/weatherstation/weatherd.conf ] && [ ! -e /etc/weatherstation/chart.conf ] ); then
|
||||
if getent passwd weatherstation >/dev/null 2>&1; then
|
||||
echo -n "delete user weatherstation ... "
|
||||
deluser --quiet weatherstation 2>/dev/null || true
|
||||
echo "done"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
+4
-1
@@ -2,9 +2,12 @@
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
deluser --quiet weatherstation dailout 2>/dev/null || true
|
||||
|
||||
if ( [ ! -e /etc/weatherstation/chart.conf ] && [ ! -e /etc/weatherstation/checksensor.conf ] && [ ! -e /etc/weatherstation/frontend.conf ] ); then
|
||||
if getent passwd weatherstation >/dev/null 2>&1; then
|
||||
echo -n "delete user weatherstation ... "
|
||||
deluser --quiet weatherstation dailout 2>/dev/null || true
|
||||
deluser --quiet weatherstation 2>/dev/null || true
|
||||
echo "done"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user