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,11 +15,13 @@ wget -O ./site/data/tube.json https://tube.crapaud-fou.org/feeds/videos.json?sor
|
||||||
# chat
|
# chat
|
||||||
pip3 install -r ./scripts/requirements.txt
|
pip3 install -r ./scripts/requirements.txt
|
||||||
echo $ROCKETCHAT_GENERATION
|
echo $ROCKETCHAT_GENERATION
|
||||||
|
if [ -n "$ROCKETCHAT_GENERATION" ]; then
|
||||||
if [ $ROCKETCHAT_GENERATION = "MONTHLY" ] ; then
|
if [ $ROCKETCHAT_GENERATION = "MONTHLY" ] ; then
|
||||||
python3 ./scripts/generate_chat_stat_monthly.py
|
python3 ./scripts/generate_chat_stat_monthly.py
|
||||||
elif [ $ROCKETCHAT_GENERATION = "DAILY" ]; then
|
elif [ $ROCKETCHAT_GENERATION = "DAILY" ]; then
|
||||||
python3 ./scripts/generate_chat_stat_daily.py
|
python3 ./scripts/generate_chat_stat_daily.py
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
python3 ./scripts/generate_chat_info.py
|
python3 ./scripts/generate_chat_info.py
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue