summaryrefslogtreecommitdiff
path: root/helpers/lh_source_debian-live
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_source_debian-live')
-rwxr-xr-xhelpers/lh_source_debian-live10
1 files changed, 9 insertions, 1 deletions
diff --git a/helpers/lh_source_debian-live b/helpers/lh_source_debian-live
index 151146813..c82ca29f2 100755
--- a/helpers/lh_source_debian-live
+++ b/helpers/lh_source_debian-live
@@ -59,7 +59,15 @@ cp -a config source/debian-live
# Create tarball
cd source
-tar cfz debian-live-config_$(date +%Y%m%d.%s).tar.gz debian-live
+
+if gzip --help | grep -q '\-\-rsyncable'
+then
+ tar cf debian-live-config_$(date +%Y%m%d.%s).tar debian-live
+ gzip --rsyncable --best debian-live-config_$(date +%Y%m%d.%s).tar
+else
+ tar cfz debian-live-config_$(date +%Y%m%d.%s).tar.gz debian-live
+fi
+
cd "${OLDPWD}"
rm -rf source/debian-live/config