auth_radius: fixed sample dictionary file install
authorDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 7 Nov 2017 12:15:46 +0000 (13:15 +0100)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 7 Nov 2017 12:15:46 +0000 (13:15 +0100)
- avoid overwriting previous versions of the dictionary

src/modules/auth_radius/Makefile

index 0e616ee..983fe62 100644 (file)
@@ -21,8 +21,8 @@ install-cfg:
        @$(call try_err, $(INSTALL_TOUCH) \
                        "$(cfg_prefix)/$(cfg_dir)dictionary.$(CFG_NAME).sample" )
        @$(call try_err, $(INSTALL_CFG) \
-                       "cfg/dictionary.$(CFG_NAME).sample" \
-                       "$(cfg_prefix)/$(cfg_dir)" )
+                       "cfg/dictionary.$(CFG_NAME)" \
+                       "$(cfg_prefix)/$(cfg_dir)dictionary.$(CFG_NAME).sample" )
        @if [ -z "${skip_cfg_install}" -a \
                        ! -f "$(cfg_prefix)/$(cfg_dir)dictionary.$(CFG_NAME)" ]; then \
                mv -f "$(cfg_prefix)/$(cfg_dir)dictionary.$(CFG_NAME).sample" \