From 1a2554548a2ed44d619f0804773ee9b38d22f941 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Mon, 18 Mar 2024 22:54:30 +0100 Subject: [PATCH] chore: Simplify install script (#8048) * chore: Simplify install script The default .env file now contains a set UPLOAD_LOCATION already * fix: Remove leftover line --- install.sh | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/install.sh b/install.sh index fc894ce21e..232ee1597e 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ ip_address=$(hostname -I | awk '{print $1}') create_immich_directory() { echo "Creating Immich directory..." - mkdir -p ./immich-app/immich-data + mkdir -p ./immich-app cd ./immich-app || exit } @@ -20,21 +20,6 @@ download_dot_env_file() { curl -L https://github.com/immich-app/immich/releases/latest/download/example.env -o ./.env >/dev/null 2>&1 } -replace_env_value() { - KERNEL="$(uname -s | tr '[:upper:]' '[:lower:]')" - if [ "$KERNEL" = "darwin" ]; then - sed -i '' "s|$1=.*|$1=$2|" ./.env - else - sed -i "s|$1=.*|$1=$2|" ./.env - fi -} - -populate_upload_location() { - echo "Populating default UPLOAD_LOCATION value..." - upload_location=$(pwd)/immich-data - replace_env_value "UPLOAD_LOCATION" "$upload_location" -} - start_docker_compose() { echo "Starting Immich's docker containers" @@ -59,7 +44,6 @@ start_docker_compose() { show_friendly_message() { echo "Successfully deployed Immich!" echo "You can access the website at http://$ip_address:2283 and the server URL for the mobile app is http://$ip_address:2283/api" - echo "The library location is $upload_location" echo "---------------------------------------------------" echo "If you want to configure custom information of the server, including the database, Redis information, or the backup (or upload) location, etc. @@ -75,5 +59,4 @@ show_friendly_message() { create_immich_directory download_docker_compose_file download_dot_env_file -populate_upload_location start_docker_compose