]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Fix empty pakfire uuid file.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 20 Aug 2009 16:57:43 +0000 (18:57 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 20 Aug 2009 16:57:43 +0000 (18:57 +0200)
config/rootfiles/core/30/update.sh

index abf541e133aa7aeffcb8decebb14ac1c80182ab7..c7eebf948c2d986a78e072bf600c555c548ac437 100644 (file)
@@ -62,3 +62,8 @@ if [ "$ctdisk" == " ../../xvda3" ]; then
        #
        sed -i 's|"2.5"|"2.5-ct"|g' /opt/pakfire/etc/pakfire.conf
 fi
+# On ct' Server the pakfire uuid file exist but it is empty
+# delete this empty file so pakfire generate a uuid
+if [ ! -s "/opt/pakfire/db/uuid" ]; then
+       rm -f /opt/pakfire/db/uuid
+fi