Symlink in /usr/local/sbin

This commit is contained in:
Jip-Hop 2023-08-14 19:02:53 +02:00
parent d59251d6de
commit cee863e5e9
2 changed files with 2 additions and 2 deletions

View File

@ -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)). 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 ## Create Jail

View File

@ -831,7 +831,7 @@ def install_jailmaker():
for file, original_permission in original_permissions.items(): for file, original_permission in original_permissions.items():
stat_chmod(file, original_permission) stat_chmod(file, original_permission)
target = '/usr/bin/jlmkr' target = '/usr/local/sbin/jlmkr'
# Check if command exists in path # Check if command exists in path
if shutil.which('jlmkr'): if shutil.which('jlmkr'):