Fix replace config after repeat run script

This commit is contained in:
CodeRoK7
2025-02-25 13:52:47 +05:00
committed by GitHub
parent 7efb5838d9
commit e8fa81656f

View File

@@ -35,17 +35,17 @@ then
do do
cp -f "$DIR/$file" "$DIR_BACKUP/$file" cp -f "$DIR/$file" "$DIR_BACKUP/$file"
done done
fi
echo "Replace configs..." echo "Replace configs..."
for file in $config_files for file in $config_files
do do
if [ "$file" != "dhcp" ] if [ "$file" != "dhcp" ]
then then
wget -O "$DIR/$file" "$URL/$file" wget -O "$DIR/$file" "$URL/$file"
fi fi
done done
fi
echo "Configure dhcp..." echo "Configure dhcp..."