From dab0a7167db39e0ed009a6061a9a0a8d91f86a2c Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sun, 23 Sep 2012 13:38:24 -0500 Subject: func: touch new certs to update the date when func fails. This is needed in cases where the system was installed with an incorrect time. --- abs/core/func/PKGBUILD | 4 ++-- abs/core/func/failed_func | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/abs/core/func/PKGBUILD b/abs/core/func/PKGBUILD index 50dae2b..b811131 100644 --- a/abs/core/func/PKGBUILD +++ b/abs/core/func/PKGBUILD @@ -1,6 +1,6 @@ pkgname=func pkgver=0.25 -pkgrel=9 +pkgrel=10 pkgdesc="fedora unifed network controller" url="" license="gpl" @@ -40,7 +40,7 @@ md5sums=('892252004f122c61bb58bb4607553ffe' '1e2905074203d5c0557f143a6c50c497' '1393088fa64823606e0b1c02296041f4' '32cc4d15a3083b518d9f645b656cc273' - 'cb27f9b7f6cef35b7cd2b4b2dbfc2b6b' + 'c30f420c01628a08061270e8502115c5' 'b02a733b7a74569e57521bc3708724a5' '1bf9594c41817d4f70d4465b84cbe8b6' '28e141f04ccbdde1199b41888e102dc9' diff --git a/abs/core/func/failed_func b/abs/core/func/failed_func index bb4ad7a..b4605bf 100644 --- a/abs/core/func/failed_func +++ b/abs/core/func/failed_func @@ -12,10 +12,13 @@ status=$? if [ $status = 0 ] then echo "removing ca (failed_func.sh)" + touch /etc/pki/certmaster/ca/* rm -f /etc/pki/certmaster/* echo "restarting func" sv stop funcd + sv stop certmaster sleep 3 + sv start certmaster sv start funcd fi -- cgit v0.12