Fix empty pakfire uuid file.

This commit is contained in:
Arne Fitzenreiter
2009-08-20 18:57:43 +02:00
parent 5f713bdcfd
commit 368b4d7d12

View 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