Add installation scripts

This commit is contained in:
Aaron 2019-03-29 03:33:14 +00:00 committed by Kevin
parent 7048db42bd
commit df8a3d39bc
15 changed files with 293 additions and 44 deletions

12
install/onionr Executable file
View file

@ -0,0 +1,12 @@
#!/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"
exec su onionr -s /bin/sh -c "./onionr.sh ""$@"""