Update run.sh
This commit is contained in:
parent
96748fb97f
commit
f573015254
1 changed files with 4 additions and 0 deletions
|
|
@ -4,6 +4,9 @@
|
||||||
if [ ! -d "temp" ]; then
|
if [ ! -d "temp" ]; then
|
||||||
mkdir temp
|
mkdir temp
|
||||||
fi
|
fi
|
||||||
|
if [ ! -d "temp/auth" ]; then
|
||||||
|
mkdir temp/auth
|
||||||
|
fi
|
||||||
echo "Debug: Script started at $(date)" >> ./temp/debug.log
|
echo "Debug: Script started at $(date)" >> ./temp/debug.log
|
||||||
echo "Debug: Current directory is $(pwd)" >> ./temp/debug.log
|
echo "Debug: Current directory is $(pwd)" >> ./temp/debug.log
|
||||||
echo "Debug: User is $(whoami)" >> ./temp/debug.log
|
echo "Debug: User is $(whoami)" >> ./temp/debug.log
|
||||||
|
|
@ -16,6 +19,7 @@ cd ${BOT_ROOT}
|
||||||
|
|
||||||
# If doesn't have temp/cookies.json, create it
|
# If doesn't have temp/cookies.json, create it
|
||||||
if [ ! -f "./temp/auth/cookies.json" ]; then
|
if [ ! -f "./temp/auth/cookies.json" ]; then
|
||||||
|
mkdir temp/auth
|
||||||
python3 library/init-auth.py
|
python3 library/init-auth.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue