config: Update 5 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 22s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 22s
This commit is contained in:
@@ -24,6 +24,16 @@ if [[ "${CAMERA_PASSWORD}" == *[!\@\#\$\&\%]* ]]; then
|
||||
export CAMERA_PASSWORD="${CAMERA_PASSWORD_ENCODED}"
|
||||
fi
|
||||
|
||||
# Create .env file for docker-compose with all required variables
|
||||
echo "Creating environment file for docker-compose..."
|
||||
cat > "${LOCAL_DATA_FOLDER}/config/.env" <<EOF
|
||||
# Auto-generated environment file for docker-compose
|
||||
PROJECT_NAME=${PROJECT_NAME}
|
||||
RECORDINGS_FOLDER=${RECORDINGS_FOLDER}
|
||||
MTX_PATHS_COURT_MAIN_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=0
|
||||
MTX_PATHS_COURT_SUB_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=1
|
||||
EOF
|
||||
|
||||
# Test Docker
|
||||
_check_docker_installed || _die "Docker test failed, aborting installation..."
|
||||
|
||||
|
Reference in New Issue
Block a user