diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-18 11:04:32 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-18 11:04:32 -0400 |
commit | bcaa90a2e6f26191ff4aa9e0279080d1efeec3e7 (patch) | |
tree | 4ab17f451df64dc1a842473954baf31116c113d8 | |
parent | 202a83d99581019d8bf215bfa04f6d30cf794578 (diff) |
db-functions: line repetitive things up
-rw-r--r-- | db-functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db-functions b/db-functions index 6e27148..ebf1d47 100644 --- a/db-functions +++ b/db-functions @@ -407,9 +407,9 @@ set_repo_permission() { if [ -w "${dbfile}" ]; then local group=$(/usr/bin/stat --printf='%G' "$(dirname "${dbfile}")") - chgrp "$group" "${dbfile}" || error "Could not change group of %s to %s" "${dbfile}" "$group" + chgrp "$group" "${dbfile}" || error "Could not change group of %s to %s" "${dbfile}" "$group" chgrp "$group" "${filesfile}" || error "Could not change group of %s to %s" "${filesfile}" "$group" - chmod g+w "${dbfile}" || error "Could not set write permission for group %s to %s" "$group" "${dbfile}" + chmod g+w "${dbfile}" || error "Could not set write permission for group %s to %s" "$group" "${dbfile}" chmod g+w "${filesfile}" || error "Could not set write permission for group %s to %s" "$group" "${filesfile}" else error "You don't have permission to change %s" "${dbfile}" |