Merge pull request #1747 from maxengel/rclone-post-update-upgrade-fix

rclone `post-update` fix
This commit is contained in:
spycat88
2025-09-30 21:00:04 +01:00
committed by GitHub

View File

@@ -20,5 +20,13 @@ else
rsync --ignore-existing /usr/config/cloud_sync.conf /storage/.config/
# Always update defaults file to ensure latest version is available for reference
rsync /usr/config/cloud_sync.conf.defaults /storage/.config/
# Remove conflicting --verbose flags from existing user config to prevent parameter conflicts
if [ -f "/storage/.config/cloud_sync.conf" ]; then
sed -i 's/--verbose//g' /storage/.config/cloud_sync.conf
sed -i 's/-v / /g' /storage/.config/cloud_sync.conf
# Clean up any double spaces left by removal
sed -i 's/ \+/ /g' /storage/.config/cloud_sync.conf
fi
fi
fi