diff --git a/site-updater-i2hq.sh b/site-updater-i2hq.sh
index da2dd4beaccebd76a45e6bc9b2e6e4c34561b826..603d2b3526d9d43a4f9537f739f161953e105adf 100755
--- a/site-updater-i2hq.sh
+++ b/site-updater-i2hq.sh
@@ -10,7 +10,7 @@ if grep "^mtn: \(add\|dropp\|updat\)ing 'i2p2www/translations/" "$TMP" >/dev/nul
   ./compile-messages-i2hq.sh
 fi
 
-if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" >/dev/null; then
+if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TMP" >/dev/null; then
   echo "Python files changed, restarting server"
   touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa
 fi