This commit is contained in:
imnyang 2024-11-06 17:14:20 +09:00
commit bf706e58d8
14 changed files with 297 additions and 0 deletions

22
app/run.sh Normal file
View file

@ -0,0 +1,22 @@
cd /root/isangjeong.today
#rm -rf 20*.png
#rm -rf /etc/localtime
#ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
# If doesn't have .venv folder, create it
if [ ! -d "venv" ]; then
python3 -m venv venv
.venv/bin/pip install -r requirements.txt
fi
# If doesn't have temp folder, create it
if [ ! -d "temp" ]; then
mkdir temp
fi
# If doesn't have temp/cookies.json, create it
if [ ! -f "temp/cookies.json" ]; then
.venv/bin/python3 library/init-auth.py
fi
.venv/bin/python3 run.py > temp/$(date +%Y%m%d-%H%M%S).log 2>&1