summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJonathan Bauer2013-09-20 17:02:07 +0200
committerJonathan Bauer2013-09-20 17:02:07 +0200
commit7ca042135c5ba849db405bbe44e1ccf0fb88f9bf (patch)
tree8edab79a2c893fb1acc8707d3df8cf5e20e872ef /server
parent[pam-freiburg] fix permission (diff)
downloadtm-scripts-7ca042135c5ba849db405bbe44e1ccf0fb88f9bf.tar.gz
tm-scripts-7ca042135c5ba849db405bbe44e1ccf0fb88f9bf.tar.xz
tm-scripts-7ca042135c5ba849db405bbe44e1ccf0fb88f9bf.zip
[export_target] set owner and group of config files to root, always
Diffstat (limited to 'server')
-rwxr-xr-xserver/export_target2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/export_target b/server/export_target
index 52f87942..4dbf2aae 100755
--- a/server/export_target
+++ b/server/export_target
@@ -128,7 +128,7 @@ generate_config() {
done
# no conflict, add file to archive
- tar cf "${TARGET_CONFIG_BUILD_DIR}/${MODULE_CONFIG}.tar" $(ls)
+ tar --owner=root --group=root -c -f "${TARGET_CONFIG_BUILD_DIR}/${MODULE_CONFIG}.tar" $(ls)
RET=$?
[ "x$RET" != "x0" ] && perror "\tCould not create '${TARGET_CONFIG_BUILD_DIR}/${MODULE_CONFIG}.tar'"
done