Do not sort config options, just cat to preserve precedence

If we sort | uniq config options, then the lowest in the sort will get
precedence, when what we want is for user preferences to override system
ones.
This commit is contained in:
Kyle Rankin 2018-12-06 16:29:09 -08:00
parent 64484206ed
commit 8b8be510a2
No known key found for this signature in database
GPG Key ID: 555577116BFA74B9

View File

@ -233,5 +233,5 @@ replace_config() {
mv ${CONFIG_FILE}.tmp ${CONFIG_FILE}
}
combine_configs() {
sort /etc/config* | uniq > /tmp/config
cat /etc/config* > /tmp/config
}