X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fupdate.sh;h=1f31d429c44b047cd5137de3fff26f03a73674c5;hb=48b0163d247554d7e2f1ec63b717c8216ea9ec59;hp=3ef1043920d3157f76b21f312037047320a91147;hpb=893f107fa1451050b478838c84dc85eb295c94b7;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/update.sh b/scripts/update.sh index 3ef10439..1f31d429 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -37,6 +37,12 @@ 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 + rm -rf var/cache/* git fetch origin git fetch --tags