Symlink in /usr/local/sbin
This commit is contained in:
parent
d59251d6de
commit
cee863e5e9
|
@ -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
|
||||||
|
|
||||||
|
|
2
jlmkr.py
2
jlmkr.py
|
@ -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'):
|
||||||
|
|
Loading…
Reference in New Issue