22 lines
No EOL
534 B
Bash
22 lines
No EOL
534 B
Bash
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 |