X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Fpakfire%2Flib%2Ffunctions.sh;h=bc05bd01e0112d137715241c36e5cfc8faed9a69;hp=1cc4d810a4297523cb2a539f051f284630028695;hb=ace40c90eceaf77ed20ba39a45a2f883aaafa3fe;hpb=343262e683c9c4f65caa20995504baa43256fd23 diff --git a/src/pakfire/lib/functions.sh b/src/pakfire/lib/functions.sh index 1cc4d810a..bc05bd01e 100644 --- a/src/pakfire/lib/functions.sh +++ b/src/pakfire/lib/functions.sh @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2012 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,7 +24,14 @@ extract_files() { echo "Extracting files..." - tar xvf /opt/pakfire/tmp/files --preserve --numeric-owner -C / + tar xvf /opt/pakfire/tmp/files --no-overwrite-dir -p --numeric-owner -C / + echo "...Finished." +} + +extract_backup_includes() { + echo "Extracting backup includes..." + tar xvf /opt/pakfire/tmp/files --no-overwrite-dir -p --numeric-owner -C / \ + var/ipfire/backup/addons/includes echo "...Finished." }