From cee863e5e98af3a0676a45684111a63dc2c66818 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Mon, 14 Aug 2023 19:02:53 +0200 Subject: [PATCH] Symlink in /usr/local/sbin --- README.md | 2 +- jlmkr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 58c0d03..29e6c1b 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Unfortunately since version 22.12.3 TrueNAS SCALE no longer includes systemd-nsp We need to do this again after each update of TrueNAS SCALE. So it is recommended to schedule this command as Post Init Script (see [Autostart Jail on Boot](#autostart-jail-on-boot)). -Additionally the install command will create a symlink from `/usr/bin/jlmkr` to `jlmkr.py`. Thanks this this you can now run the `jlmkr` command from anywhere (instead of having to run `./jlmkr.py` from inside the directory where you've placed it). +Additionally the install command will create a symlink from `/usr/local/sbin/jlmkr` to `jlmkr.py`. Thanks this this you can now run the `jlmkr` command from anywhere (instead of having to run `./jlmkr.py` from inside the directory where you've placed it). ## Create Jail diff --git a/jlmkr.py b/jlmkr.py index 1e44a72..e6cf698 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -831,7 +831,7 @@ def install_jailmaker(): for file, original_permission in original_permissions.items(): stat_chmod(file, original_permission) - target = '/usr/bin/jlmkr' + target = '/usr/local/sbin/jlmkr' # Check if command exists in path if shutil.which('jlmkr'):