From 50d46390ab1335b2b2da2e858a3bb2873598290e Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Wed, 6 Nov 2024 15:13:32 +0100 Subject: [PATCH] Next try fix to avoid that a default configuration overrides a custom configuration during a container update. --- src/install_openwrt_rootfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install_openwrt_rootfs.sh b/src/install_openwrt_rootfs.sh index f8c5c38..d89effe 100644 --- a/src/install_openwrt_rootfs.sh +++ b/src/install_openwrt_rootfs.sh @@ -26,8 +26,8 @@ else cp /var/vm/openwrt_additional/etc/rc.local /mnt/etc/rc.local chmod +x /mnt/etc/rc.local - # Add some additional default configurations. Only if we have a fresh container - if [ ! -f /storage/old_version ]; then + # Add some additional default configurations. Only if we have a fresh container because /storage/current_version is not existing then + if [ ! -f /storage/current_version ]; then chmod +x /var/vm/openwrt_additional/etc/uci-defaults/* cp /var/vm/openwrt_additional/etc/uci-defaults/* /mnt/etc/uci-defaults/ fi