config: Add 1 and update 4 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:
@@ -9,10 +9,20 @@ _check_required_env_vars "PROJECT_NAME" "LOCAL_DATA_FOLDER" "CAMERA_IP" "COURT_I
|
||||
# shellcheck disable=SC2046
|
||||
create_items $(get_squashkiwi_streaming_paths) || _die "Failed to create directories"
|
||||
mkdir -p "${RECORDINGS_FOLDER}"
|
||||
mkdir -p "${LOCAL_DATA_FOLDER}/config"
|
||||
mkdir -p "${LOCAL_DATA_FOLDER}/config/overlay"
|
||||
mkdir -p "${LOCAL_DATA_FOLDER}/config/web"
|
||||
|
||||
# Copy configuration files
|
||||
cp -r "${SCRIPT_DIR}/config/"* "${LOCAL_DATA_FOLDER}/config/" || _die "Failed to copy config files"
|
||||
|
||||
# URL-encode the camera password if it contains special characters
|
||||
if [[ "${CAMERA_PASSWORD}" == *[!\@\#\$\&\%]* ]]; then
|
||||
echo "Note: Camera password contains special characters. Encoding for RTSP URL..."
|
||||
CAMERA_PASSWORD_ENCODED=$(echo -n "${CAMERA_PASSWORD}" | sed 's/!/%21/g; s/@/%40/g; s/#/%23/g; s/\$/%24/g; s/&/%26/g; s/%/%25/g')
|
||||
export CAMERA_PASSWORD="${CAMERA_PASSWORD_ENCODED}"
|
||||
fi
|
||||
|
||||
# Test Docker
|
||||
_check_docker_installed || _die "Docker test failed, aborting installation..."
|
||||
|
||||
|
Reference in New Issue
Block a user