fix: update config file extension from .yml to .yaml

Change default config file path and download URL to use .yaml
extension instead of .yml. This ensures consistency with the
upstream file and prevents potential file not found errors.
This commit is contained in:
Christopher
2025-05-15 15:54:29 -05:00
parent 7a4ae1190b
commit 5e0a9c2dde

View File

@@ -1,11 +1,11 @@
#!/usr/bin/env bash
# Ask the user for the desired config location
read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-file-browser-quantum/data/config.yml): " location
read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-file-browser-quantum/data/config.yaml): " location
# If the user doesn't provide a location, default to the specified path
if [ -z "$location" ]; then
location="/DATA/AppData/big-bear-file-browser-quantum/config.yml"
location="/DATA/AppData/big-bear-file-browser-quantum/config.yaml"
fi
# Check if the config file already exists
@@ -21,7 +21,7 @@ fi
mkdir -p "$(dirname "$location")"
# Download the file from the given URL and save it to the specified location
curl -L "https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/refs/heads/master/Apps/file-browser-quantum/data/config.yml" -o "$location"
curl -L "https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/refs/heads/master/Apps/file-browser-quantum/data/config.yaml" -o "$location"
# Confirm to the user
echo "Config saved to $location"