mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-03-31 06:33:56 -04:00
This commit refactors all the shell scripts to use `#!/usr/bin/env bash` instead of `#!/bin/bash`. This change ensures that the scripts will run with the system's default Bash interpreter, even if it is not located at the standard `/bin/bash` path.
25 lines
505 B
Bash
25 lines
505 B
Bash
#!/usr/bin/env bash
|
|
|
|
CONFIG_PATH="/DATA/AppData/frigate/config/config.yml"
|
|
|
|
# Ensure the directory exists
|
|
mkdir -p $(dirname $CONFIG_PATH)
|
|
|
|
# Write the content to config.yml
|
|
cat > $CONFIG_PATH <<EOL
|
|
mqtt:
|
|
host: mqtt.server.com
|
|
cameras:
|
|
back:
|
|
ffmpeg:
|
|
inputs:
|
|
- path: rtsp://viewer:change_password@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
|
|
roles:
|
|
- detect
|
|
detect:
|
|
width: 1280
|
|
height: 720
|
|
EOL
|
|
|
|
echo "Configuration written to $CONFIG_PATH"
|