diff --git a/dietpi/func/dietpi-set_software b/dietpi/func/dietpi-set_software index 84bf2eaa5e..c72255fb48 100755 --- a/dietpi/func/dietpi-set_software +++ b/dietpi/func/dietpi-set_software @@ -208,7 +208,10 @@ deb $INPUT_MODE_VALUE $G_DISTRO_NAME-backports main contrib non-free' > /etc/apt 'compress') case $INPUT_ADDITIONAL_1 in 1|'enable') G_EXEC rm -f "$fp_compress";; - 0|'disable') echo -e '# Please use "dietpi-config" > "Advanded Options" > "APT" to edit this setting.\nAcquire::GzipIndexes "false";' > "$fp_compress";; + 0|'disable') + echo '# Please use "dietpi-config" > "Advanded Options" > "APT" to edit this setting.' > "$fp_compress";; + G_CONFIG_INJECT 'Acquire::GzipIndexes[[:blank:]]' 'Acquire::GzipIndexes "false";' "$fp_compress" + ;; *) Unknown_Input_Additional 1;; esac;; 'reset') :;;