Skip to content

Instantly share code, notes, and snippets.

@ravenac95
Created August 8, 2012 23:11
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 ravenac95/3299626 to your computer and use it in GitHub Desktop.
Save ravenac95/3299626 to your computer and use it in GitHub Desktop.
DSM Install Script
#!/bin/bash
# Change this to the service name
DSM_SCRIPT=s3
# Change this to the service's main entry point (python only)
SCRIPT=s3.py
vstrap init
. quickactivate
PYTHON_PATH=`which python`
cat > $DSM_SCRIPT << EOF
#!/bin/bash
$PYTHON_PATH $SCRIPT \$@
EOF
chmod 700 $DSM_SCRIPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment