From aabae11b7cc31e795bf9c4169361ea4f72595c67 Mon Sep 17 00:00:00 2001 From: Juhyung Park Date: Thu, 11 Jul 2024 20:45:53 +0900 Subject: [PATCH] Get ready for directory refactoring https://github.com/immich-app/immich/pull/10958 Signed-off-by: Juhyung Park --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 842d679..9a11062 100755 --- a/install.sh +++ b/install.sh @@ -57,9 +57,9 @@ grep -RlE "\"0\.0\.0\.0\"|'0\.0\.0\.0'" | xargs -n1 sed -i -e "s@'0\.0\.0\.0'@'1 # Replace /usr/src grep -Rl /usr/src | xargs -n1 sed -i -e "s@/usr/src@$IMMICH_PATH@g" -ln -sf $IMMICH_PATH/app/resources $IMMICH_PATH/ mkdir -p $IMMICH_PATH/cache grep -RlE "\"/cache\"|'/cache'" | xargs -n1 sed -i -e "s@\"/cache\"@\"$IMMICH_PATH/cache\"@g" -e "s@'/cache'@'$IMMICH_PATH/cache'@g" +grep -RlE "\"/build\"|'/build'" | xargs -n1 sed -i -e "s@\"/build\"@\"$IMMICH_PATH/app\"@g" -e "s@'/build'@'$IMMICH_PATH/app'@g" # immich-server cd server @@ -101,7 +101,8 @@ python3 -m venv $APP/machine-learning/venv cp -a machine-learning/ann machine-learning/start.sh machine-learning/app $APP/machine-learning/ # Install GeoNames -cd $IMMICH_PATH/app/resources +mkdir -p $IMMICH_PATH/app/geodata +cd $IMMICH_PATH/app/geodata wget -o - https://download.geonames.org/export/dump/admin1CodesASCII.txt & wget -o - https://download.geonames.org/export/dump/admin2Codes.txt & wget -o - https://download.geonames.org/export/dump/cities500.zip &