aboutsummaryrefslogtreecommitdiffstats
path: root/packages/stunnel.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/stunnel.xml')
-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");