Node.js based forum software built for the modern web
fix: Revise package hash check in Docker entrypoint.sh (#13483)
cliffmccarthy6c5b22684bdb
diff --git a/install/docker/entrypoint.sh b/install/docker/entrypoint.shindex dd17d707e7..db2a637ee0 100755--- a/install/docker/entrypoint.sh+++ b/install/docker/entrypoint.sh@@ -103,7 +103,7 @@ build_forum() {local config="$1"local start_build="$2"local package_hash=$(md5sum install/package.json | head -c 32)- if [ "$package_hash" = "$(cat $CONFIG_DIR/install_hash.md5 || true)" ]; then+ if [ "$package_hash" != "$(cat $CONFIG_DIR/install_hash.md5 || true)" ]; thenecho "package.json was updated. Upgrading..."/usr/src/app/nodebb upgrade --config="$config" || {echo "Failed to build NodeBB. Exiting..."