initial commit of file from CVS for smeserver-phpki-ng on Sat Sep 7 20:50:40 AEST 2024
This commit is contained in:
9
root/etc/e-smith/events/actions/phpki-fixownership
Normal file
9
root/etc/e-smith/events/actions/phpki-fixownership
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
chown root:phpki /opt/phpki/html/config.php
|
||||
chown root:phpki /opt/phpki/html/openssl.cnf
|
||||
chown phpki:phpki -R /opt/phpki/phpki-store*
|
||||
chown root:phpki /opt/phpki/html/ca
|
||||
|
||||
chmod +x /opt/phpki/html/
|
||||
chmod +x /opt/phpki/html/ca
|
8
root/etc/e-smith/events/actions/phpki-fixtakey
Normal file
8
root/etc/e-smith/events/actions/phpki-fixtakey
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -f /opt/phpki/phpki-store/CA/private/cakey.pem && ! -f /opt/phpki/phpki-store/CA/private/takey.pem ]]
|
||||
then
|
||||
echo "creating missing takey.pem"
|
||||
runuser -u phpki -- openvpn --genkey --secret /opt/phpki/phpki-store/CA/private/takey.pem
|
||||
fi
|
||||
|
Reference in New Issue
Block a user