From af14e825c89975e186e99f61eb33d3764601ef16 Mon Sep 17 00:00:00 2001 From: Self Hosted Date: Sun, 22 Feb 2026 20:46:10 +0000 Subject: [PATCH] adding bash script to copy configs to bound folders --- scripts/copy.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/copy.sh diff --git a/scripts/copy.sh b/scripts/copy.sh new file mode 100644 index 0000000..b2b0e24 --- /dev/null +++ b/scripts/copy.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Set the source and destination directories +source_dir=/app +destination_dir=/config + +# Get a list of files in the source directory +files=$(ls "$source_dir") + +# Loop through the list of files +for file in $files +do + # Check if the file exists in the destination directory + if [ ! -f "$destination_dir/$file" ]; then + # If the file does not exist, copy it to the destination directory + cp "$source_dir/$file" "$destination_dir/$file" + echo "Copied $file to $destination_dir" + else + echo "$file already exists in $destination_dir" + fi +done