From: Arne Fitzenreiter Date: Thu, 20 Aug 2009 16:57:43 +0000 (+0200) Subject: Fix empty pakfire uuid file. X-Git-Tag: v2.5-core30~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=368b4d7d127a12f04fd6b99d35c638f24b0f9675;p=people%2Fstevee%2Fipfire-2.x.git Fix empty pakfire uuid file. --- diff --git a/config/rootfiles/core/30/update.sh b/config/rootfiles/core/30/update.sh index abf541e133..c7eebf948c 100644 --- a/config/rootfiles/core/30/update.sh +++ b/config/rootfiles/core/30/update.sh @@ -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