2016-10-27 09:53:09 +02:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
2019-06-12 21:33:53 +02:00
|
|
|
# Check for composer
|
2016-10-27 09:53:09 +02:00
|
|
|
if [ ! -f composer.phar ]; then
|
|
|
|
echo "composer.phar not found, we'll see if composer is installed globally."
|
2020-07-25 15:32:27 +02: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 10:09:43 +02:00
|
|
|
else
|
2017-02-04 17:02:25 +01:00
|
|
|
COMPOSER_COMMAND='./composer.phar'
|
2016-10-27 09:53:09 +02:00
|
|
|
fi
|
2023-08-02 09:44:14 +02:00
|
|
|
|
|
|
|
# Check for git
|
|
|
|
command -v git >/dev/null 2>&1 ||
|
2023-08-19 07:18:13 +02:00
|
|
|
{ echo >&2 "git is not installed. We can't install wallabag";
|
2023-08-02 09:44:14 +02:00
|
|
|
exit 1
|
|
|
|
}
|