diff options
author | Erich Eckner <git@eckner.net> | 2019-02-25 15:40:41 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-25 15:40:41 +0100 |
commit | cbc416a25d57f5541531186b402d8df9400de179 (patch) | |
tree | a6233243e6a912b72bcbb085e3cced26aaefb404 /bareos/bareos-storage.install | |
parent | 8949a82c8aa34b44a06fef23f3cc1f3f5c6010d6 (diff) | |
download | archlinuxewe.git.save-cbc416a25d57f5541531186b402d8df9400de179.tar.xz |
bareos new
Diffstat (limited to 'bareos/bareos-storage.install')
-rw-r--r-- | bareos/bareos-storage.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bareos/bareos-storage.install b/bareos/bareos-storage.install new file mode 100644 index 00000000..8026ef6f --- /dev/null +++ b/bareos/bareos-storage.install @@ -0,0 +1,19 @@ +## arg 1: the new package version +post_install() { + /usr/lib/bareos/scripts/bareos-config initialize_local_hostname + /usr/lib/bareos/scripts/bareos-config initialize_passwords + + chown -R bareos:bareos /usr/share/bareos/config/bareos-sd.d + chmod -R 750 /usr/share/bareos/config/bareos-sd.d + + chown bareos:bareos /usr/bin/bareos-sd + + chown bareos:bareos /var/lib/bareos/storage/ + chmod 750 /var/lib/bareos/storage/ + + /usr/lib/bareos/scripts/bareos-config setup_sd_user +} + +post_upgrade() { + post_install +} |