fix error when $ROCKETCHAT_GENERATION not exist
This commit is contained in:
parent
d6f2e21175
commit
9c3d700547
1 changed files with 6 additions and 4 deletions
|
@ -15,10 +15,12 @@ wget -O ./site/data/tube.json https://tube.crapaud-fou.org/feeds/videos.json?sor
|
|||
# chat
|
||||
pip3 install -r ./scripts/requirements.txt
|
||||
echo $ROCKETCHAT_GENERATION
|
||||
if [ $ROCKETCHAT_GENERATION = "MONTHLY" ] ; then
|
||||
python3 ./scripts/generate_chat_stat_monthly.py
|
||||
elif [ $ROCKETCHAT_GENERATION = "DAILY" ]; then
|
||||
python3 ./scripts/generate_chat_stat_daily.py
|
||||
if [ -n "$ROCKETCHAT_GENERATION" ]; then
|
||||
if [ $ROCKETCHAT_GENERATION = "MONTHLY" ] ; then
|
||||
python3 ./scripts/generate_chat_stat_monthly.py
|
||||
elif [ $ROCKETCHAT_GENERATION = "DAILY" ]; then
|
||||
python3 ./scripts/generate_chat_stat_daily.py
|
||||
fi
|
||||
fi
|
||||
|
||||
python3 ./scripts/generate_chat_info.py
|
||||
|
|
Loading…
Reference in a new issue