fixed in the way transcode is set up, all scripts in that folder adjusted
This commit is contained in:
@@ -252,6 +252,23 @@ else
|
||||
RAMDISK_SIZE_ACTUAL=$(df "$RAMDISK_PATH" --output=size -h | tail -1 | tr -d ' ')
|
||||
success "$ICON_RAM Ramdisk mounted — size: $RAMDISK_SIZE_ACTUAL"
|
||||
fix_permissions "$RAMDISK_PATH"
|
||||
|
||||
# Guarantee transcoding-temp exists on ramdisk
|
||||
# If missing Emby creates it wherever it finds a writable path first —
|
||||
# which may be the SSD fallback — locking all new sessions onto SSD
|
||||
# even when the symlink correctly points at the ramdisk.
|
||||
TRANSCODE_TEMP_RAM="${RAMDISK_PATH}/transcoding-temp"
|
||||
TRANSCODE_TEMP_SSD="${TRANSCODE_SSD}/transcoding-temp"
|
||||
|
||||
if [[ ! -d "$TRANSCODE_TEMP_RAM" ]]; then
|
||||
warn "transcoding-temp missing from ramdisk — creating now"
|
||||
mkdir -p "$TRANSCODE_TEMP_RAM"
|
||||
chmod "$TRANSCODE_CHMOD" "$TRANSCODE_TEMP_RAM"
|
||||
chown "$TRANSCODE_OWNER" "$TRANSCODE_TEMP_RAM"
|
||||
success "transcoding-temp created on ramdisk — new sessions will use ramdisk"
|
||||
else
|
||||
log "transcoding-temp exists on ramdisk — ok"
|
||||
fi
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user