mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +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
+6
-5
@@ -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
@@ -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
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user