summaryrefslogtreecommitdiff
path: root/backend/main.py
diff options
context:
space:
mode:
authorAAGaming <aa@mail.catvibers.me>2023-01-16 14:44:16 -0500
committerAAGaming <aa@mail.catvibers.me>2023-01-16 14:44:16 -0500
commit0ad0016c620e89fecc46aad771b35a9a72749fb3 (patch)
tree96e0c415ccc304d72758e21fe793548b426075d6 /backend/main.py
parenta2716449f92c5f84000962143d517d20887b30b6 (diff)
downloaddecky-loader-0ad0016c620e89fecc46aad771b35a9a72749fb3.tar.gz
decky-loader-0ad0016c620e89fecc46aad771b35a9a72749fb3.zip
move the chownv2.4.14-pre1
Diffstat (limited to 'backend/main.py')
-rw-r--r--backend/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/backend/main.py b/backend/main.py
index ad38d517..c48ad752 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -56,12 +56,15 @@ basicConfig(
logger = getLogger("Main")
-async def chown_plugin_dir():
+def chown_plugin_dir():
code_chown = call(["chown", "-R", USER+":"+GROUP, CONFIG["plugin_path"]])
code_chmod = call(["chmod", "-R", "555", CONFIG["plugin_path"]])
if code_chown != 0 or code_chmod != 0:
logger.error(f"chown/chmod exited with a non-zero exit code (chown: {code_chown}, chmod: {code_chmod})")
+if CONFIG["chown_plugin_path"] == True:
+ chown_plugin_dir()
+
class PluginManager:
def __init__(self, loop) -> None:
self.loop = loop
@@ -87,8 +90,6 @@ class PluginManager:
self.loop.create_task(start_systemd_unit(REMOTE_DEBUGGER_UNIT))
else:
self.loop.create_task(stop_systemd_unit(REMOTE_DEBUGGER_UNIT))
- if CONFIG["chown_plugin_path"] == True:
- await chown_plugin_dir()
self.loop.create_task(self.loader_reinjector())
self.loop.create_task(self.load_plugins())