auto-build-api-doc-with-code
Moe 2021-03-27 06:56:56 -07:00
commit 0d38d9ecaa
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ if [ "$DB_DISABLE_INCLUDED" = "false" ]; then
else
echo "Create database schema if it does not exists ..."
mysql -u "$DB_USER" -h "$DB_HOST" -p"$DB_PASSWORD" --port="$DB_PORT" -e "source /home/Shinobi/sql/framework.sql" || true
mysql -u "$DB_USER" -h "$DB_HOST" -p"$DB_PASSWORD" --port="$DB_PORT" --database="$DB_DATABASE" -e "source /home/Shinobi/sql/framework.sql" || true
fi
DATABASE_CONFIG='{"host": "'$DB_HOST'","user": "'$DB_USER'","password": "'$DB_PASSWORD'","database": "'$DB_DATABASE'","port":'$DB_PORT'}'

View File

@ -80,7 +80,7 @@ if [[ $@ == *'restart'* ]]; then
else
if [[ $@ == *'start'* ]] || [[ $@ == *'now'* ]]; then
proccessAlive=$(pm2 list | grep camera | grep online)
if [ "$proccessAlive" ]]; then
if [ "$proccessAlive" ]; then
echo "Shinobi process is already running."
else
if [ -e "$installationDirectory/INSTALL/installed.txt" ]; then