mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 14:58:00 +00:00
package-fixes
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@175 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#
|
#
|
||||||
# Regular cron jobs for the weatherstation package
|
# Regular cron jobs for the weatherstation package
|
||||||
#
|
#
|
||||||
*/15 * * * * weatherstation /usr/bin/chart
|
*/15 * * * * weatherstation /usr/bin/weather_chart
|
||||||
|
|||||||
Vendored
+3
-3
@@ -6,7 +6,7 @@ if ! getent passwd weatherstation >/dev/null 2>&1; then
|
|||||||
echo -n "Creating user/group 'weatherstation'" >&2
|
echo -n "Creating user/group 'weatherstation'" >&2
|
||||||
adduser --quiet --system --group --no-create-home \
|
adduser --quiet --system --group --no-create-home \
|
||||||
--disabled-password --disabled-login \
|
--disabled-password --disabled-login \
|
||||||
--shell /bin/false --ingroup dailout \
|
--shell /bin/false \
|
||||||
weatherstation
|
weatherstation
|
||||||
echo "."
|
echo "."
|
||||||
fi
|
fi
|
||||||
@@ -20,6 +20,8 @@ if [ -e /etc/weatherstation/frontend.conf ]; then
|
|||||||
echo -n "Lege Link zu den Bildern an ... "
|
echo -n "Lege Link zu den Bildern an ... "
|
||||||
/bin/ln -s -f $LINKTARGET $LINKNAME
|
/bin/ln -s -f $LINKTARGET $LINKNAME
|
||||||
echo "done"
|
echo "done"
|
||||||
|
/bin/chown weatherstation:www-data $LINKTARGET
|
||||||
|
/bin/chmod 750 $LINKTARGET
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -28,5 +30,3 @@ fi
|
|||||||
/bin/chown weatherstation:weatherstation /etc/weatherstation/chart.conf
|
/bin/chown weatherstation:weatherstation /etc/weatherstation/chart.conf
|
||||||
/bin/chmod 440 /etc/weatherstation/chart.conf
|
/bin/chmod 440 /etc/weatherstation/chart.conf
|
||||||
|
|
||||||
/bin/chown weatherstation:www-data $LINKTARGET
|
|
||||||
/bin/chmod 750 $LINKTARGET
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#
|
#
|
||||||
# Regular cron jobs for the weatherstation package
|
# Regular cron jobs for the weatherstation package
|
||||||
#
|
#
|
||||||
*/15 * * * * weatherstation /usr/bin/checksensor
|
0 12 * * * weatherstation /usr/bin/weather_checksensor
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ if ! getent passwd weatherstation >/dev/null 2>&1; then
|
|||||||
echo -n "Creating user/group 'weatherstation'" >&2
|
echo -n "Creating user/group 'weatherstation'" >&2
|
||||||
adduser --quiet --system --group --no-create-home \
|
adduser --quiet --system --group --no-create-home \
|
||||||
--disabled-password --disabled-login \
|
--disabled-password --disabled-login \
|
||||||
--shell /bin/false --ingroup dailout
|
--shell /bin/false \
|
||||||
weatherstation
|
weatherstation
|
||||||
echo "."
|
echo "."
|
||||||
fi
|
fi
|
||||||
|
|||||||
+10
@@ -20,10 +20,20 @@ if [ -e /etc/weatherstation/chart.conf ]; then
|
|||||||
echo -n "Lege Link zu den Bildern an ... "
|
echo -n "Lege Link zu den Bildern an ... "
|
||||||
/bin/ln -s -f $LINKTARGET $LINKNAME
|
/bin/ln -s -f $LINKTARGET $LINKNAME
|
||||||
echo "done"
|
echo "done"
|
||||||
|
/bin/chown weatherstation:www-data $LINKTARGET
|
||||||
|
/bin/chmod 750 $LINKTARGET
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! getent passwd weatherstation >/dev/null 2>&1; then
|
||||||
|
echo -n "Creating user/group 'weatherstation'" >&2
|
||||||
|
adduser --quiet --system --group --no-create-home \
|
||||||
|
--disabled-password --disabled-login \
|
||||||
|
--shell /bin/false \
|
||||||
|
weatherstation
|
||||||
|
echo "."
|
||||||
|
fi
|
||||||
|
|
||||||
# Fixperms:
|
# Fixperms:
|
||||||
/bin/chown weatherstation:www-data /etc/weatherstation/frontend.conf
|
/bin/chown weatherstation:www-data /etc/weatherstation/frontend.conf
|
||||||
|
|||||||
+2
-1
@@ -6,8 +6,9 @@ if ! getent passwd weatherstation >/dev/null 2>&1; then
|
|||||||
echo -n "Creating user/group 'weatherstation'" >&2
|
echo -n "Creating user/group 'weatherstation'" >&2
|
||||||
adduser --quiet --system --group --no-create-home \
|
adduser --quiet --system --group --no-create-home \
|
||||||
--disabled-password --disabled-login \
|
--disabled-password --disabled-login \
|
||||||
--shell /bin/false --ingroup dailout \
|
--shell /bin/false \
|
||||||
weatherstation
|
weatherstation
|
||||||
|
adduser weatherstation dailout
|
||||||
echo "."
|
echo "."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
+1
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
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 dailout 2>/dev/null || true
|
||||||
deluser --quiet weatherstation 2>/dev/null || true
|
deluser --quiet weatherstation 2>/dev/null || true
|
||||||
echo "done"
|
echo "done"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user