Next try fix to avoid that a default configuration overrides a custom configuration during a container update.

This commit is contained in:
Albrecht Lohofener
2024-11-06 15:13:32 +01:00
parent 3d7251930b
commit 50d46390ab
+2 -2
View File
@@ -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