move config to data folder, fixes #171
This commit is contained in:
parent
0e87b10079
commit
b05618f50a
7 changed files with 61 additions and 43 deletions
15
ctl
15
ctl
|
|
@ -10,9 +10,18 @@ BASE=`pwd`
|
|||
SYSTEM=`uname -s`
|
||||
PLATFORM=`uname -m`
|
||||
|
||||
DATA="$BASE/data"
|
||||
if [ ! -e "$DATA" ] && [ -e "$BASE/config" ]; then
|
||||
#mv "$BASE/config" "$DATA"
|
||||
DATA="$BASE/config"
|
||||
else
|
||||
if [ ! -e "$BASE/data/release.json" ] && [ -e "$BASE/config/release.json" ]; then
|
||||
mv "$BASE/config/release.json" "$BASE/data/release.json"
|
||||
fi
|
||||
fi
|
||||
if [ ! -e $PID ]; then
|
||||
if [ -e "$BASE/config/tor/hostname" ]; then
|
||||
onion=$(cat "$BASE/config/tor/hostname")
|
||||
if [ -e "$DATA/tor/hostname" ]; then
|
||||
onion=$(cat "$DATA/tor/hostname")
|
||||
id=${onion/.onion/}
|
||||
PID="/tmp/$NAME.$USER.$id.pid"
|
||||
fi
|
||||
|
|
@ -44,7 +53,7 @@ fi
|
|||
PYTHONPATH="$PLATFORM_ENV/lib/python3.4/site-packages:$SHARED_ENV/lib/python3.4/site-packages:$BASE/$NAME"
|
||||
export PYTHONPATH
|
||||
|
||||
oxCACHE="$BASE/config/ox"
|
||||
oxCACHE="$DATA/ox"
|
||||
export oxCACHE
|
||||
|
||||
#must be called to update commands in $PATH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue