]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
pakfire: add function to extract backup includes.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 7 Jul 2012 17:37:56 +0000 (19:37 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 7 Jul 2012 17:37:56 +0000 (19:37 +0200)
this is needed to fix some addons with missing includes at the next
update. (eg. nagios).

config/rootfiles/core/61/filelists/files
src/pakfire/lib/functions.sh

index 11316ebad211aa7df3b8255730f04916cb97b75f..56981ed01cb9a73eeb7eeb7a4e25ac21ac14efe4 100644 (file)
@@ -1,6 +1,7 @@
 etc/system-release
 etc/issue
 etc/rc.d/init.d/collectd
+opt/pakfire/lib/functions.sh
 srv/web/ipfire/cgi-bin/index.cgi
 srv/web/ipfire/cgi-bin/ovpnmain.cgi
 var/ipfire/general-functions.pl
index 2f6491f28e3b4a7862a775787ae30cca8061bb78..bc05bd01e0112d137715241c36e5cfc8faed9a69 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2012  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # 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        #
@@ -28,6 +28,13 @@ extract_files() {
        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."
+}
+
 remove_files() {
        echo "Removing files..."
        for i in $(cat /opt/pakfire/db/rootfiles/${NAME}); do