summaryrefslogtreecommitdiff
path: root/bareos/bareos-common.install
diff options
context:
space:
mode:
Diffstat (limited to 'bareos/bareos-common.install')
-rw-r--r--bareos/bareos-common.install31
1 files changed, 0 insertions, 31 deletions
diff --git a/bareos/bareos-common.install b/bareos/bareos-common.install
deleted file mode 100644
index 426157081..000000000
--- a/bareos/bareos-common.install
+++ /dev/null
@@ -1,31 +0,0 @@
-# arg 1: the new package version
-pre_install() {
- # Create User/Group
- getent group bareos > /dev/null || groupadd --system bareos
- getent passwd bareos > /dev/null || useradd --system --gid bareos \
- --home-dir /var/lib/bareos --no-create-home bareos
-
-}
-
-# arg 1: the new package version
-post_install() {
- chown bareos:bareos /var/lib/bareos/
- chown bareos:bareos /run/bareos/
- #chown bareos:bareos /var/log/bareos/
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-pre_upgrade() {
- pre_install
-}
-
-post_upgrade() {
- post_install
-}
-
-# arg 1: the old package version
-post_remove() {
- getent passwd bareos > /dev/null && userdel bareos
- rm -f /etc/bareos/.rndpwd
-}