diff options
-rw-r--r-- | packages/stunnel.xml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/stunnel.xml b/packages/stunnel.xml index c525b867..1350c6cb 100644 --- a/packages/stunnel.xml +++ b/packages/stunnel.xml @@ -70,8 +70,9 @@ </field> </fields> <custom_php_install_command> + system("mkdir /usr/local/etc/stunnel 2>/dev/null"); system("mkdir /var/tmp/stunnel 2>/dev/null"); - system("/usr/bin/openssl req -new -x509 -days 365 -nodes -out /usr/local/etc/stunnel/stunnel.pem -keyout /usr/local/etc/stunnel/stunnel.pem"); + system("/usr/bin/openssl req -new -x509 -days 365 -nodes -out /usr/local/etc/stunnel/stunnel.pem -keyout /usr/local/etc/stunnel/stunnel.pem 2>/dev/null"); system("chmod a-r /usr/local/etc/stunnel/stunnel.pem"); system("chmod u+r /usr/local/etc/stunnel/stunnel.pem"); system("mkdir -p /var/tmp/stunnel/var/tmp"); @@ -81,7 +82,9 @@ </custom_php_install_command> <custom_php_deinstall_command> system("rm -rf /var/tmp/stunnel 2>/dev/null"); - system("rm -rf /usr/local/etc/stunnel/stunnel.pem"); + system("rm -rf /usr/local/etc/stunnel*"); + system("pw userdel stunnel"); + system("pw groupdel stunnel"); </custom_php_deinstall_command> <custom_add_php_command_late> $fout = fopen("/usr/local/etc/stunnel/stunnel.conf","w"); |