chore
This commit is contained in:
parent
c5bc686aca
commit
bd9512d369
|
@ -1,6 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Weather collection service
|
Description=Weather collection service
|
||||||
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/home/citrullux/ModernOSLabs/src
|
WorkingDirectory=/home/citrullux/ModernOSLabs/src
|
||||||
|
|
|
@ -19,8 +19,8 @@ def install() -> None:
|
||||||
# Fix for weather service
|
# Fix for weather service
|
||||||
with open(os.path.join(projectDir, "services/wthrc.service"), "r") as service:
|
with open(os.path.join(projectDir, "services/wthrc.service"), "r") as service:
|
||||||
lines = service.readlines()
|
lines = service.readlines()
|
||||||
lines[5] = "WorkingDirectory=" + os.path.join(projectDir, "src") + "\n"
|
lines[6] = "WorkingDirectory=" + os.path.join(projectDir, "src") + "\n"
|
||||||
lines[6] = (
|
lines[7] = (
|
||||||
"ExecStart=" + pythonPath + " " + os.path.join(projectDir, "src/main.py") + "\n"
|
"ExecStart=" + pythonPath + " " + os.path.join(projectDir, "src/main.py") + "\n"
|
||||||
)
|
)
|
||||||
with open(os.path.join(projectDir, "services/wthrc.service"), "w") as service:
|
with open(os.path.join(projectDir, "services/wthrc.service"), "w") as service:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user