High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
chore: Simplify install script (#8048)
bo0tzz1a2554548a2e
diff --git a/install.sh b/install.shindex 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-appcd ./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_directorydownload_docker_compose_filedownload_dot_env_file-populate_upload_locationstart_docker_compose