mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
pst remount helper
This commit is contained in:
parent
5be17cb756
commit
0353e0c832
1
configs/os/sudoers/v0-hdmi
Normal file
1
configs/os/sudoers/v0-hdmi
Normal file
@ -0,0 +1 @@
|
||||
kvmd-pst ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-pst-remount
|
||||
1
configs/os/sudoers/v0-hdmiusb
Normal file
1
configs/os/sudoers/v0-hdmiusb
Normal file
@ -0,0 +1 @@
|
||||
kvmd-pst ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-pst-remount
|
||||
@ -1,2 +1,3 @@
|
||||
kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-unlock
|
||||
kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-remount
|
||||
kvmd-pst ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-pst-remount
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-unlock
|
||||
kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-remount
|
||||
kvmd-pst ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-pst-remount
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-unlock
|
||||
kvmd ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-otgmsd-remount
|
||||
kvmd-pst ALL=(ALL) NOPASSWD: /usr/bin/kvmd-helper-pst-remount
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
g kvmd - -
|
||||
g kvmd-pst - -
|
||||
g kvmd-ipmi - -
|
||||
g kvmd-vnc - -
|
||||
g kvmd-nginx - -
|
||||
g kvmd-janus - -
|
||||
|
||||
u kvmd - "PiKVM - The main daemon" -
|
||||
u kvmd-pst - "PiKVM - Persistent storage" -
|
||||
u kvmd-ipmi - "PiKVM - IPMI to KVMD proxy" -
|
||||
u kvmd-vnc - "PiKVM - VNC to KVMD/Streamer proxy" -
|
||||
u kvmd-nginx - "PiKVM - HTTP entrypoint" -
|
||||
|
||||
@ -103,6 +103,9 @@ def main() -> None:
|
||||
if app == "kvmd-helper-otgmsd-remount":
|
||||
target = "otgmsd"
|
||||
dirs = ["images", "meta"]
|
||||
elif app == "kvmd-helper-pst-remount":
|
||||
target = "pst"
|
||||
dirs = ["data"]
|
||||
else:
|
||||
raise SystemExit("Unknown application target")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user