diff --git a/services/wthrc.service b/services/wthrc.service index 826b857..abb5c0e 100644 --- a/services/wthrc.service +++ b/services/wthrc.service @@ -1,6 +1,7 @@ [Unit] Description=Weather collection service + [Service] Type=simple WorkingDirectory=/home/citrullux/ModernOSLabs/src diff --git a/src/installer.py b/src/installer.py index 1b23898..c40cf09 100644 --- a/src/installer.py +++ b/src/installer.py @@ -19,8 +19,8 @@ def install() -> None: # Fix for weather service with open(os.path.join(projectDir, "services/wthrc.service"), "r") as service: lines = service.readlines() - lines[5] = "WorkingDirectory=" + os.path.join(projectDir, "src") + "\n" - lines[6] = ( + lines[6] = "WorkingDirectory=" + os.path.join(projectDir, "src") + "\n" + lines[7] = ( "ExecStart=" + pythonPath + " " + os.path.join(projectDir, "src/main.py") + "\n" ) with open(os.path.join(projectDir, "services/wthrc.service"), "w") as service: