diff --git a/publish_on_pages.sh b/publish_on_pages.sh
index f6df54afd002d3ac074377bc547d9d18e8ed19a9..d08e3732fe6fbd233dd89526fa04a1d8de18daec 100644
--- a/publish_on_pages.sh
+++ b/publish_on_pages.sh
@@ -15,8 +15,9 @@ if [ -e "content.zip" ]; then
     unzip "content.zip";
     rm "content.zip";
 else
-    echo 'Pages do not exist yet';
-    exit 0
+    if [ $4 == 'upgrade' ]; then
+        echo 'Pages do not exist yet';
+        exit 0
 fi
 set -e