2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-03 23:15:33 +00:00
This commit is contained in:
quadrismegistus 2020-09-14 23:44:33 +01:00
parent 2a6382e3b6
commit bd1cd8fde6

View File

@ -10,11 +10,13 @@ pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
source $pathvenv
date=$(date '+%Y-%m-%d')
pathlog="$SCRIPTPATH/../log/$date.op.log"
pathlog="$SCRIPTPATH/../../data/log"
mkdir -p "$pathlog"
fnfn="$pathlog/$date.op.log"
#echo $pathlog
cmd="python $path 8080 $* >> $pathlog 2>&1"
cmd="python $path 8080 $* >> $fnfn 2>&1"
# do forever
while true; do $cmd && break; done