Pretty sure the setup.sh would create the directory symlink $version inside the directory
/channels-dvr/latest if /channels-dvr/latest already exists as a directory
ln -nsf $version channels-dvr/latest
So if $version is 2025.08.01.1845, the symlink created
would be /channels-dvr/latest/2025.08.01.1845 pointing to /channels-dvr/2025.08.01.1845
instead of /channels-dvr/latest pointing to /channels-dvr/2025.08.01.1845
Am I correct in my assumption?
EDIT: Answered my own question
It fails to create the directory symlink, since a directory by that name already exists and continues running the same old version
2025/08/30 18:31:25.163056 [SYS] Starting Channels DVR v2025.05.31.0551 (linux-x86_64 pid:7) in /channels-dvr/data
2025/08/30 18:31:25.337066 [SYS] Started HTTP Server on 8089
2025/08/30 18:31:25.792412 [HDR] Found 1 devices
2025/08/30 18:31:26.421913 [TLS] Requesting certificate for xxxxxxxxcad.u.channelsdvr.net
2025/08/30 18:31:26.498343 [DVR] Recording engine started in /shares/dvr
2025/08/30 18:31:26.531154 [SYS] Created database snapshot: backup-20250831.013126
2025/08/30 18:31:27.039884 [SYS] Downloading new version v2025.08.01.1845
2025/08/30 18:31:48.005909 [SYS] Error checking for update: remove /channels-dvr/latest: directory not empty
Once I delete the latest directory and check for update, it works
2025/08/30 18:36:55.734980 [TLS] Certificate ready for xxxxxxxxxcad.u.channelsdvr.net
2025/08/30 18:39:51.259370 [SYS] Downloading new version v2025.08.28.2100
2025/08/30 18:40:06.348952 [SYS] Update downloaded and verified successfully.
2025/08/30 18:40:06.450200 [SYS] Created database snapshot: backup-20250831.014006
2025/08/30 18:40:06.450511 [SYS] Shutting down for upgrade from v2025.05.31.0551 to v2025.08.28.2100
2025/08/30 18:40:06.471680 [DVR] Recording engine stopped.
2025/08/30 18:40:07.746420 [SYS] Starting Channels DVR v2025.08.28.2100 (linux-x86_64 pid:7) in /channels-dvr/data
2025/08/30 18:40:07.815570 [SYS] Started HTTP Server on 8089
2025/08/30 18:40:08.291693 [HDR] Found 1 devices
2025/08/30 18:40:08.954211 [DVR] Recording engine started in /shares/dvr
2025/08/30 18:40:09.261024 [SYS] Created database snapshot: backup-20250831.014009