last Bugfixes
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@188 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
parent
e85b29966e
commit
b2ceb0edb6
|
|
@ -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,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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue