Skip to content

Instantly share code, notes, and snippets.

@bkreider
Created June 5, 2014 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkreider/678372e271e9c4c81fa2 to your computer and use it in GitHub Desktop.
Save bkreider/678372e271e9c4c81fa2 to your computer and use it in GitHub Desktop.
Stunnel configuration
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