mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
Fixed errors regarding the installation script (#6644)
install.sh: fix bash error Error 1: ./install.sh: 26: [[: not found Error 2: docker: 'compose' is not a docker command. Signed-off-by: Peppe289 <gsperanza204@protonmail.com>
This commit is contained in:
parent
e9333837bf
commit
e2ac019f51
1 changed files with 4 additions and 3 deletions
|
@ -23,7 +23,8 @@ download_dot_env_file() {
|
||||||
}
|
}
|
||||||
|
|
||||||
replace_env_value() {
|
replace_env_value() {
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
KERNEL="$(uname -s | tr '[:upper:]' '[:lower:]')"
|
||||||
|
if [ "$KERNEL" = "darwin" ]; then
|
||||||
sed -i '' "s|$1=.*|$1=$2|" ./.env
|
sed -i '' "s|$1=.*|$1=$2|" ./.env
|
||||||
else
|
else
|
||||||
sed -i "s|$1=.*|$1=$2|" ./.env
|
sed -i "s|$1=.*|$1=$2|" ./.env
|
||||||
|
@ -39,9 +40,9 @@ populate_upload_location() {
|
||||||
start_docker_compose() {
|
start_docker_compose() {
|
||||||
echo "Starting Immich's docker containers"
|
echo "Starting Immich's docker containers"
|
||||||
|
|
||||||
if docker compose &>/dev/null; then
|
if docker compose > /dev/null 2>&1; then
|
||||||
docker_bin="docker compose"
|
docker_bin="docker compose"
|
||||||
elif docker-compose &>/dev/null; then
|
elif docker-compose > /dev/null 2>&1; then
|
||||||
docker_bin="docker-compose"
|
docker_bin="docker-compose"
|
||||||
else
|
else
|
||||||
echo 'Cannot find `docker compose` or `docker-compose`.'
|
echo 'Cannot find `docker compose` or `docker-compose`.'
|
||||||
|
|
Loading…
Reference in a new issue