diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-05 23:41:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-05 23:41:50 +0000 |
commit | 1a3508b4b6060842416c6f3bf73a445076ab0835 (patch) | |
tree | fa1ce937abb6684ef558f7239ade1b1419e43f61 /packages/stunnel.xml | |
parent | 15ae84f21cac2fbdbf220a5054845504b1347252 (diff) | |
download | pfsense-packages-1a3508b4b6060842416c6f3bf73a445076ab0835.tar.gz pfsense-packages-1a3508b4b6060842416c6f3bf73a445076ab0835.tar.bz2 pfsense-packages-1a3508b4b6060842416c6f3bf73a445076ab0835.zip |
Clean up install and deinstall
Diffstat (limited to 'packages/stunnel.xml')
-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"); |