summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2016-07-02 21:46:24 +0100
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2016-07-02 21:49:41 +0100
commit9f367ab90f56e5dbcfde65a1cf3ef97498fd7cae (patch)
tree4d7e8b4e00a09e05f3344dcaa881c4862f0ba2e5 /app-backup/burp/files/burp.initd
parentdev-libs/nss: Bump to version 3.25 (diff)
downloadgentoo-9f367ab90f56e5dbcfde65a1cf3ef97498fd7cae.tar.gz
gentoo-9f367ab90f56e5dbcfde65a1cf3ef97498fd7cae.tar.bz2
gentoo-9f367ab90f56e5dbcfde65a1cf3ef97498fd7cae.zip
app-backup/burp: Correct permissions
Remove autoupgrade configuration. Package-Manager: portage-2.3.0
Diffstat (limited to 'app-backup/burp/files/burp.initd')
-rw-r--r--app-backup/burp/files/burp.initd7
1 files changed, 6 insertions, 1 deletions
diff --git a/app-backup/burp/files/burp.initd b/app-backup/burp/files/burp.initd
index fda1a751538..d88af5597c4 100644
--- a/app-backup/burp/files/burp.initd
+++ b/app-backup/burp/files/burp.initd
@@ -17,6 +17,11 @@ extra_started_commands="reload summary"
description_reload="Reloads configuration"
description_summary="Displays main status monitor summary"
+get_backup_dir() {
+ grep '^directory = ' "${BURP_CONFIG}" \
+ | sed -e 's/^directory = //'
+}
+
depend() {
need localmount
after bootmisc
@@ -28,7 +33,7 @@ start_pre() {
checkpath -o root:burp -m 0640 -f /etc/burp/burp-server.conf
checkpath -o root:burp -m 0750 -d /etc/burp/clientconfdir
checkpath -o burp:burp -m 0775 -d /run/lock/burp
- checkpath -o root:burp -m 0750 -d /var/spool/burp
+ checkpath -o root:burp -m 0770 -d "$(get_backup_dir)"
}
reload() {