|
@@ -95,7 +95,9 @@ bind_dirs() {
|
|
|
|
|
|
# Initially copy over data directories to /rw if rw directory does not exist.
|
|
|
if [ -d "$fso_ro" ] || [ -f "$fso_ro" ]; then
|
|
|
- cp --verbose --no-clobber --archive --recursive --parents "$fso_ro" "$rw_dest_dir"
|
|
|
+ if ! [ -d "$fso_rw" -o -f "$fso_rw" ]; then
|
|
|
+ cp --verbose --archive --recursive --parents "$fso_ro" "$rw_dest_dir"
|
|
|
+ fi
|
|
|
else
|
|
|
true "$fso_ro is neither a directory nor a file or does not exist, skipping."
|
|
|
continue
|