Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network.service: Use environment file
All systems now have a file /etc/local/mxhost.conf with the host specific IP address and network interface. Use that data in the unit file. Note, that this is not shell syntax. The difference between $VAR and ${VAR} is how the whitespaces inside VAR are handled. ${VAR} would be "$VAR" in shell syntax. We don't need the brackets, because the values are single words only. However, unlike the shell, systemd would parse $MX_IPADDR/20 as an environment variable named "MX_IPADDR/20". So we need the curlies at that point to terminate the variable name. Use it everywhere for readability and to avoid future errors.
- Loading branch information