+if [ ! -f "$REQUIRE_FILE" ]; then
+ echo "Cannot find $REQUIRE_FILE"
+ exit 1
+fi
+
+. "$REQUIRE_FILE"
+
+# Check for wallabag .git folder
+if [ ! -d .git ]; then
+ echo "Can not update because wallabag wasn't installed using git (see https://doc.wallabag.org/en/admin/upgrade.html#upgrade-on-a-shared-hosting). Aborting.";
+ exit 2;
+fi