Created
June 5, 2014 14:21
-
-
Save bkreider/678372e271e9c4c81fa2 to your computer and use it in GitHub Desktop.
Stunnel configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setup_stunnel(): | |
sudo("rm -f /etc/stunnel/stunnel.conf") | |
put("stunnel.conf", "/etc/stunnel/stunnel.conf", use_sudo=True) | |
sudo("rm -f /etc/init.d/stunnel") | |
put("stunnel", "/etc/init.d/stunnel", use_sudo=True) | |
sudo("chkconfig stunnel on") | |
with settings(warn_only=True): | |
sudo("mkdir -p /var/run/stunnel") | |
sudo("chown nobody:nobody /var/run/stunnel") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment