forked from wallabag/wallabag
Check if .git directory exist
If that folder doesn’t exist, it means the udpate script won’t be able to run because it uses git to retrieve the update.
This commit is contained in:
@ -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 1;
|
||||
fi
|
||||
|
||||
rm -rf var/cache/*
|
||||
git fetch origin
|
||||
git fetch --tags
|
||||
|
||||
Reference in New Issue
Block a user