aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-07 16:18:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-07 16:18:18 +0000
commite3a7c3aa765a2ab17badf6ac7195b68b5f807a9c (patch)
tree2d14b22e72a54e7695282259218612252acc70f4 /packages
parent97dc8bbf4c21c795aa5d473ea176feb8705707ad (diff)
downloadpfsense-packages-e3a7c3aa765a2ab17badf6ac7195b68b5f807a9c.tar.gz
pfsense-packages-e3a7c3aa765a2ab17badf6ac7195b68b5f807a9c.tar.bz2
pfsense-packages-e3a7c3aa765a2ab17badf6ac7195b68b5f807a9c.zip
Seperate commands out
Ticket #302
Diffstat (limited to 'packages')
-rw-r--r--packages/stunnel.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/stunnel.xml b/packages/stunnel.xml
index 0b745c48..8dafc21f 100644
--- a/packages/stunnel.xml
+++ b/packages/stunnel.xml
@@ -75,9 +75,13 @@
safe_mkdir("/usr/local/etc/stunnel");
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");
chmod("/usr/local/etc/stunnel/stunnel.pem", 600);
- system("mkdir /var/tmp/stunnel; mkdir /var/tmp/stunnel/var; mkdir /var/tmp/stunnel/var/tmp; chown -R stunnel:stunnel /var/tmp/stunnel");
+ system("/bin/mkdir /var/tmp/stunnel");
+ system("/bin/mkdir /var/tmp/stunnel/var");
+ system("/bin/mkdir /var/tmp/stunnel/var/tmp");
+ system("/usr/sbin/chown -R stunnel:stunnel /var/tmp/stunnel");
chmod("/var/tmp/stunnel/var/tmp/", 1777);
$fout = fopen("/usr/local/etc/rc.d/stunnel.sh","w");
+ system("/usr/sbin/chown -R stunnel:stunnel /var/tmp/stunnel/var/stunnel");
fwrite($fout, "#!/bin/sh\n");
fwrite($fout, "# PACKAGE: STunnel\n");
fwrite($fout, "# EXECUTABLE: stunnel\n");