Fix bad format in /etc/hosts

This commit is contained in:
Andros Fenollosa 2023-08-21 11:13:51 +02:00
parent 80e285960d
commit cce53d6835

5
maza
View File

@ -131,8 +131,9 @@ update() {
start() { start() {
update update
# Add List to host file # Add List to host file.
cat "$CONFIG$LIST" >> "$HOST_FILE" # Transform "mydomain.com" to "127.0.0.1 mydomain.com" except comments
custom-sed "/^#/!s/^/127.0.0.1 /g" "$CONFIG$LIST" >> "$HOST_FILE"
# Notify user # Notify user
echo "${COLOR_GREEN}ENABLED!${COLOR_RESET}" echo "${COLOR_GREEN}ENABLED!${COLOR_RESET}"
} }