Immich: increase disk resource; add logic for determining upload location change

- Increasing disk resources to 20GB
- Adding 'IMMICH_MEDIA_LOCATION' env var to .env - edit this to change
Immich upload location
- Read IMMICH_MEDIA_LOCATION from env during update for dynamic symlinks
This commit is contained in:
vhsdream
2025-05-24 09:44:57 -04:00
parent 1c484d21be
commit 8b89fb0b52
3 changed files with 9 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ source <(curl -s https://git.community-scripts.org/community-scripts/ProxmoxVED/
APP="immich"
var_tags="${var_tags:-photos}"
var_disk="${var_disk:-16}"
var_disk="${var_disk:-20}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-4096}"
var_os="${var_os:-debian}"
@@ -219,7 +219,7 @@ EOF
msg_ok "Database upgrade complete"
fi
INSTALL_DIR="/opt/${APP}"
UPLOAD_DIR="${INSTALL_DIR}/upload"
UPLOAD_DIR="$(sed -n '/IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)"
SRC_DIR="${INSTALL_DIR}/source"
APP_DIR="${INSTALL_DIR}/app"
ML_DIR="${APP_DIR}/machine-learning"