mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
cert-enroll: Preventing some errors that might occur
This commit is contained in:
parent
f328ef0e04
commit
28ccdff692
@ -37,12 +37,12 @@ cat $HOSTKEY $HOSTCERT > /etc/lighttpd/https-cert.pem
|
||||
##############################################################################
|
||||
# Restart the lighttpd daemon
|
||||
#
|
||||
systemctl list-unit-files lighttpd.service | \
|
||||
test -f /usr/bin/systemctl && /usr/bin/systemctl list-unit-files lighttpd.service | \
|
||||
grep -q "lighttpd.service enabled" && status=$? || status=$?
|
||||
if [ $status -eq 0 ]
|
||||
then
|
||||
/usr/bin/systemctl restart lighttpd.service
|
||||
else
|
||||
/etc/init.d/lighttpd restart
|
||||
/etc/init.d/lighttpd reload
|
||||
fi
|
||||
exit 0
|
||||
|
@ -55,7 +55,7 @@ then
|
||||
cp old/$SUBCA $OPENXPKI_TLS/chain/$OLDSUBCA
|
||||
fi
|
||||
|
||||
rm $OPENXPKI_TLS/chain/*.0
|
||||
rm -f $OPENXPKI_TLS/chain/*.0
|
||||
|
||||
/usr/bin/openssl rehash $OPENXPKI_TLS/chain
|
||||
|
||||
|
@ -54,7 +54,7 @@ then
|
||||
cp old/$SUBCA $LDAP_TLS_CACERTDIR/$OLDSUBCA
|
||||
fi
|
||||
|
||||
rm $LDAP_TLS_CACERTDIR/*.0
|
||||
rm -f $LDAP_TLS_CACERTDIR/*.0
|
||||
|
||||
/usr/bin/openssl rehash $LDAP_TLS_CACERTDIR
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user