last Bugfixes

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@188 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi 2006-09-29 20:10:06 +00:00
parent e85b29966e
commit b2ceb0edb6
4 changed files with 32 additions and 14 deletions

View File

@ -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 '"')"

View File

@ -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
debian/weatherstation-frontend.postrm vendored Normal file
View File

@ -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

View File

@ -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