You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
263 B
Bash
16 lines
263 B
Bash
5 years ago
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if [[ -z "$(ls -A "$HUGOBOT_DB_PATH")" ]];then
|
||
|
echo "WARNING !! $HUGOBOT_DB_PATH is empty, creating new database !"
|
||
|
fi
|
||
|
|
||
|
if [[ -z "$(ls -A "$WEBSITE_PATH")" ]];then
|
||
|
echo "you need to mount the website path !"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
|
||
|
exec "$@"
|