1
0
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:
losinshi
2006-09-29 20:10:06 +00:00
parent e85b29966e
commit b2ceb0edb6
4 changed files with 32 additions and 14 deletions
+6 -5
View File
@@ -1,11 +1,12 @@
#!/bin/sh #!/bin/sh
#DEBHELPER# #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 if getent passwd weatherstation >/dev/null 2>&1; then
echo -n "delete user weatherstation ... " echo -n "delete user weatherstation ... "
deluser --quiet weatherstation 2>/dev/null || true deluser --quiet weatherstation 2>/dev/null || true
echo "done" echo "done"
fi
fi fi
if [ -e /etc/weatherstation/frontend.conf ]; then if [ -e /etc/weatherstation/frontend.conf ]; then
+6 -4
View File
@@ -2,8 +2,10 @@
#DEBHELPER# #DEBHELPER#
if getent passwd weatherstation >/dev/null 2>&1; then if ( [ ! -e /etc/weatherstation/chart.conf ] && [ ! -e /etc/weatherstation/weatherd.conf ] && [ ! -e /etc/weatherstation/frontend.conf ] ); then
echo -n "delete user weatherstation ... " if getent passwd weatherstation >/dev/null 2>&1; then
deluser --quiet weatherstation 2>/dev/null || true echo -n "delete user weatherstation ... "
echo "done" deluser --quiet weatherstation 2>/dev/null || true
echo "done"
fi
fi fi
+12
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
+8 -5
View File
@@ -2,9 +2,12 @@
#DEBHELPER# #DEBHELPER#
if getent passwd weatherstation >/dev/null 2>&1; then deluser --quiet weatherstation dailout 2>/dev/null || true
echo -n "delete user weatherstation ... "
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
deluser --quiet weatherstation 2>/dev/null || true if getent passwd weatherstation >/dev/null 2>&1; then
echo "done" echo -n "delete user weatherstation ... "
deluser --quiet weatherstation 2>/dev/null || true
echo "done"
fi
fi fi