aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bacula-server/files/pkg-deinstall.client.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/bacula-server/files/pkg-deinstall.client.in')
-rw-r--r--sysutils/bacula-server/files/pkg-deinstall.client.in14
1 files changed, 8 insertions, 6 deletions
diff --git a/sysutils/bacula-server/files/pkg-deinstall.client.in b/sysutils/bacula-server/files/pkg-deinstall.client.in
index bfb60dbf2e71..7c07237addd7 100644
--- a/sysutils/bacula-server/files/pkg-deinstall.client.in
+++ b/sysutils/bacula-server/files/pkg-deinstall.client.in
@@ -1,10 +1,15 @@
#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin
+
+# Note how to delete UID/GID
+USER=%%BACULA_USER%%
+GROUP=%%BACULA_GROUP%%
+UID=%%BACULA_UID%%
+GID=%%BACULA_UID%%
+BACULA_DIR=%%BACULA_DIR%%
+
TMPFILE=/tmp/services-$RANDOM-$$
-if [ -z "${BACULA_DIR}" ]; then
- BACULA_DIR=/var/db/bacula
-fi
case "$2" in
"DEINSTALL")
@@ -21,9 +26,6 @@ case "$2" in
echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port."
fi
- # Note how to delete UID/GID
- USER=bacula
- GROUP=${USER}
if pw groupshow "${USER}" 2>/dev/null 1>&2; then
echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'"
fi