diff --git a/bin/onionshare b/bin/onionshare new file mode 100755 index 00000000..7f390db3 --- /dev/null +++ b/bin/onionshare @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import sys, os + +try: + import onionshare +except ImportError: + sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/..')) + import onionshare + +onionshare.main() diff --git a/bin/tails-onionshare b/bin/tails-onionshare new file mode 100755 index 00000000..4e0b415f --- /dev/null +++ b/bin/tails-onionshare @@ -0,0 +1,12 @@ +#!/bin/bash + +if [[ $EUID -ne 0 ]]; then + echo "You need to run this as root" 1>&2 + exit 1 +fi + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +export ONIONSHARE_PLATFORM=Tails +$DIR/onionshare $@ +