remove old pid location fallback
This commit is contained in:
parent
50e07bced6
commit
f01807bfa7
1 changed files with 1 additions and 11 deletions
10
ctl
10
ctl
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
NAME="openmedialibrary"
|
NAME="openmedialibrary"
|
||||||
PID="/tmp/$NAME.$USER.pid"
|
|
||||||
|
|
||||||
cd "`dirname "$0"`"
|
cd "`dirname "$0"`"
|
||||||
if [ -e oml ]; then
|
if [ -e oml ]; then
|
||||||
|
@ -25,16 +24,7 @@ else
|
||||||
mv "$BASE/config/release.json" "$BASE/data/release.json"
|
mv "$BASE/config/release.json" "$BASE/data/release.json"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -e "$PID" ]; then
|
|
||||||
if [ -e "$DATA/tor/hostname" ]; then
|
|
||||||
onion=$(cat "$DATA/tor/hostname")
|
|
||||||
id=${onion/.onion/}
|
|
||||||
PID="/tmp/$NAME.$USER.$id.pid"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ ! -e "$PID" ]; then
|
|
||||||
PID="$DATA/$NAME.pid"
|
PID="$DATA/$NAME.pid"
|
||||||
fi
|
|
||||||
|
|
||||||
PLATFORM_PYTHON=3.4
|
PLATFORM_PYTHON=3.4
|
||||||
SHARED_PYTHON=3.7
|
SHARED_PYTHON=3.7
|
||||||
|
|
Loading…
Reference in a new issue