Init
This commit is contained in:
commit
bf706e58d8
14 changed files with 297 additions and 0 deletions
22
app/run.sh
Normal file
22
app/run.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue