Get ready for directory refactoring

https://github.com/immich-app/immich/pull/10958
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
Juhyung Park
2024-07-11 20:45:53 +09:00
parent 11c940dfcd
commit aabae11b7c

View File

@@ -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 &