mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
minor style fixes.
This commit is contained in:
parent
70aa6cd295
commit
84547e5ad3
2 changed files with 9 additions and 11 deletions
8
debian/thalos.postinst
vendored
8
debian/thalos.postinst
vendored
|
|
@ -2,12 +2,12 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "$1" = 'configure' ]; then
|
if [ "$1" = 'configure' ]; then
|
||||||
adduser --force-badname --system --home /nonexistent \
|
adduser --force-badname --system --home /nonexistent \
|
||||||
--group --no-create-home --quiet thalos || true
|
--group --no-create-home --quiet thalos || true
|
||||||
|
|
||||||
# Create log directory
|
# Create log directory
|
||||||
mkdir -p /var/log/thalos
|
mkdir -p /var/log/thalos
|
||||||
chown thalos:adm /var/log/thalos
|
chown thalos:adm /var/log/thalos
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
|
||||||
8
debian/thalos.postrm
vendored
8
debian/thalos.postrm
vendored
|
|
@ -3,11 +3,9 @@ set -e
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
if [ "${1}" = "purge" ]; then
|
||||||
if [ "${1}" = "purge" ]
|
deluser --quiet thalos >/dev/null || true
|
||||||
then
|
rm -rf /var/log/thalos
|
||||||
deluser --quiet thalos > /dev/null || true
|
|
||||||
rm -rf /var/log/thalos
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue