Onionr/install/onionr
2019-03-28 23:18:25 -07:00

13 lines
287 B
Plaintext
Executable File

#!/bin/sh
set -e
[ "root" != "$USER" ] && exec sudo $0 "$@"
export OUTPUT_DIR=${OUTPUT_DIR:=/usr/share/onionr}
export ONIONR_HOME=${ONIONR_HOME:=/etc/onionr}
export LOG_DIR=${LOG_DIR:=/var/log/onionr}
cd "$OUTPUT_DIR/onionr"
exec su onionr -s /bin/sh -c "python3.7 onionr.py ""$@"""