fixed in the way transcode is set up, all scripts in that folder adjusted
This commit is contained in:
@@ -176,6 +176,38 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# ━━━ $ICON_GEAR Transcoding-temp Directory ━━━
|
||||
# Creates the transcoding-temp folder on the ramdisk proactively.
|
||||
# If this folder doesn't exist on the ramdisk Emby creates it wherever it finds
|
||||
# a writable path first — which may be the SSD fallback — locking all sessions
|
||||
# onto SSD even when the symlink points at the ramdisk.
|
||||
# Creating it here guarantees Emby always finds it on the ramdisk at session start.
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
echo ""
|
||||
echo "━━━ $ICON_GEAR Transcoding Temp Directory ━━━"
|
||||
|
||||
TRANSCODE_TEMP_DIR="${RAMDISK_PATH}/transcoding-temp"
|
||||
|
||||
if [[ "$DRY_RUN" == true ]]; then
|
||||
warn "DRY RUN — would create $TRANSCODE_TEMP_DIR"
|
||||
else
|
||||
if [[ -d "$TRANSCODE_TEMP_DIR" ]]; then
|
||||
info "transcoding-temp already exists on ramdisk"
|
||||
else
|
||||
mkdir -p "$TRANSCODE_TEMP_DIR" && \
|
||||
success "Created transcoding-temp on ramdisk: $TRANSCODE_TEMP_DIR" || \
|
||||
{ error "Failed to create transcoding-temp on ramdisk"; SETUP_SUCCESS=false; }
|
||||
fi
|
||||
|
||||
# Apply correct permissions so Emby (abc/nobody:users) can write to it
|
||||
if [[ -d "$TRANSCODE_TEMP_DIR" ]]; then
|
||||
chmod "$TRANSCODE_CHMOD" "$TRANSCODE_TEMP_DIR"
|
||||
chown "$TRANSCODE_OWNER" "$TRANSCODE_TEMP_DIR"
|
||||
success "Permissions set on transcoding-temp"
|
||||
fi
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# ━━━ $ICON_GEAR Permissions ━━━
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user