Skip to content

High performance self-hosted photo and video management solution.

fix: bash install.sh script for mac os (#15874)

jtkmckenna9358b4dc7e04
diff --git a/install.sh b/install.sh
index d6569f736a..ccefe4e894 100755
--- a/install.sh
+++ b/install.sh
@@ -51,6 +51,10 @@ start_docker_compose() {
show_friendly_message() {
local ip_address
ip_address=$(hostname -I | awk '{print $1}')
+ # If length of ip_address is 0, then we are on a Mac
+ if [ ${#ip_address} -eq 0 ]; then
+ ip_address=$(ipconfig getifaddr en0)
+ fi
cat <<EOF
Successfully deployed Immich!
You can access the website or the mobile app at http://$ip_address:2283