Skip to content

Commit

Permalink
Don't load user-instance if older than global-instance
Browse files Browse the repository at this point in the history
Too many people have performed a user-install and then opened a ticket wondering why their settings in /etc/arkmanager/instances/main.cfg won't apply.  Avoid this by not loading the instance.cfg in ~/.config/arkmanager/instances if it's older than the instance.cfg in /etc/arkmanager/instances
  • Loading branch information
klightspeed authored Nov 13, 2016
1 parent a462138 commit b8c6483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/arkmanager
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,7 @@ useConfig() {
if [ -f "/etc/arkmanager/instances/${1}.cfg" ]; then
configfile="/etc/arkmanager/instances/${1}.cfg"
fi
if [ -f "${HOME}/.config/arkmanager/instances/${1}.cfg" ]; then
if [[ -f "${HOME}/.config/arkmanager/instances/${1}.cfg" && "${HOME}/.config/arkmanager/instances/${1}.cfg" -nt "/etc/arkmanager/instances/${1}.cfg" ]]; then
configfile="${HOME}/.config/arkmanager/instances/${1}.cfg"
fi
for varname in "${!configfile_@}"; do
Expand Down

0 comments on commit b8c6483

Please sign in to comment.