diff options
| author | Jonathan Bauer | 2013-09-20 17:02:07 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2013-09-20 17:02:07 +0200 |
| commit | 7ca042135c5ba849db405bbe44e1ccf0fb88f9bf (patch) | |
| tree | 8edab79a2c893fb1acc8707d3df8cf5e20e872ef /server/export_target | |
| parent | [pam-freiburg] fix permission (diff) | |
| download | tm-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/export_target')
| -rwxr-xr-x | server/export_target | 2 |
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 |
