I do not think
-f will work on folders without using
That line should be
ln -snf $emoncms_symlinked_modules/$module/$module-module $emoncms_dir/Modules/$module
It has always been a maze, now it’s like a 3D maze as not only do the scripts go here there and everywhere (as before) but there is also the live, redundant and not yet rolled out timeline aspect, plus the stable vs master versions of the emoncms repo’s to boot.
On a new install, there is no need to force as there is no symlink to replace. I’m pretty sure the issue is the use of the
-f on a folder, it follows the symlink and put’s the new symlink in the folder rather than overwriting the existing symlink.
[edit2] having said that (
-n req’d) if the
backup/backup folder no longer exists, then the symlink should get replaced with just
-fas it cannot result in a nested symlink (can’t put a symlink in a folder that doesn’t exist!). IMO the
-nf options should still be used together when re pointing a folder symlink, even if it should “work out” cause the link is dead because if things are done in the wrong order eg the backup module doesn’t pull first time due to local changes etc, the result not as expected.