]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix command for linking modules in mods-enabled. 1931/head
authorSebastian J. Bronner <waschtl@sbronner.com>
Tue, 7 Mar 2017 09:07:49 +0000 (10:07 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Mar 2017 09:07:49 +0000 (10:07 +0100)
Running `ln -s mods-available/foo mods-enabled/foo` will result in a dead link: `mods-enabled/foo` will point to `mods-enabled/mods-available/foo`, which doesn't exist. The link is relative from its location, not from the current directory from which it was created.

The easiest method that allows using tab completion is to link from within `mods-enabled`. The second parameter to `ln` can be left off in that case, as well. This is the change I have proposed. Another alternative would be to run `ln -s ../mods-available/foo mods-enabled/foo` from the `raddb` directory.

raddb/README.rst

index c77a95b4b6a27432b34d5b93914491e1d87ec51f..858a6d4573cf14ae2d41448cfdd6f9ebfdf652a5 100644 (file)
@@ -76,8 +76,8 @@ ordering when the modules are loaded.
 
 Modules can be enabled by creating a soft link.  For module ``foo``, do::
 
-  $ cd raddb
-  $ ln -s mods-available/foo mods-enabled/foo
+  $ cd raddb/mods-enabled
+  $ ln -s ../mods-available/foo
 
 To create "local" versions of the modules, we suggest copying the file
 instead.  This leaves the original file (with documentation) in the