summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions7
1 files changed, 7 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index 9df678c..a20496b 100644
--- a/db-functions
+++ b/db-functions
@@ -61,4 +61,11 @@ check_pkg_arch () { #check_pkg_arch pkgfile arch
fi
}
+# Simple helper function to ensure we always
+# have proper DB permissions
+copy_helper () { #copy_helper file dest
+ /bin/cp $1 $2 || return 1
+ /bin/chmod 664 "$(dirname $2)/$(basename $1)" || return 1
+}
+
# vim: set ts=4 sw=4 noet ft=sh: