2016-10-27 07:53:09 +00:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
2019-06-12 19:33:53 +00:00
|
|
|
# Check for composer
|
2016-10-27 07:53:09 +00:00
|
|
|
if [ ! -f composer.phar ]; then
|
|
|
|
echo "composer.phar not found, we'll see if composer is installed globally."
|
2020-07-25 13:32:27 +00:00
|
|
|
command -v composer >/dev/null 2>&1 || { echo >&2 "wallabag requires composer but it's not installed (see https://doc.wallabag.org/en/admin/installation/requirements.html). Aborting."; exit 1; }
|
2016-10-27 08:09:43 +00:00
|
|
|
else
|
2017-02-04 16:02:25 +00:00
|
|
|
COMPOSER_COMMAND='./composer.phar'
|
2016-10-27 07:53:09 +00:00
|
|
|
fi
|
2023-08-02 07:44:14 +00:00
|
|
|
|
|
|
|
# Check for git
|
|
|
|
command -v git >/dev/null 2>&1 ||
|
2023-08-19 05:18:13 +00:00
|
|
|
{ echo >&2 "git is not installed. We can't install wallabag";
|
2023-08-02 07:44:14 +00:00
|
|
|
exit 1
|
|
|
|
}
|