Files
big-bear-scripts-bigbeartec…/frigate-casaos/create_config.sh
Christopher 222e6af258 🔧 refactor: Use #!/usr/bin/env bash in all shell scripts (#16)
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.
2024-10-23 13:32:15 -05:00

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"