From 1c330b626e2c9a777e9501aa901efc657d9fe74e Mon Sep 17 00:00:00 2001 From: mwiegand Date: Wed, 13 Oct 2021 12:35:39 +0200 Subject: [PATCH] wip --- bundles/gitea/metadata.py | 2 +- bundles/left4dead2/metadata.py | 4 ++-- bundles/steam/metadata.py | 2 +- bundles/systemd/metadata.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bundles/gitea/metadata.py b/bundles/gitea/metadata.py index b80b4cf..05e415d 100644 --- a/bundles/gitea/metadata.py +++ b/bundles/gitea/metadata.py @@ -47,7 +47,7 @@ defaults = { 'Environment': 'USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea', }, 'Install': { - 'WantedBy': 'multi-user.target', + 'WantedBy': {'multi-user.target'}, }, }, }, diff --git a/bundles/left4dead2/metadata.py b/bundles/left4dead2/metadata.py index 13dcb4e..89ffbf1 100644 --- a/bundles/left4dead2/metadata.py +++ b/bundles/left4dead2/metadata.py @@ -49,7 +49,7 @@ def workshop(metadata): 'ExecStart': f'/bin/bash -c {quote(command)}', }, 'Install': { - 'WantedBy': ['multi-user.target'], + 'WantedBy': {'multi-user.target'}, }, } } @@ -78,7 +78,7 @@ def server_units(metadata): 'Restart': 'on-failure', }, 'Install': { - 'WantedBy': ['multi-user.target'], + 'WantedBy': {'multi-user.target'}, }, } diff --git a/bundles/steam/metadata.py b/bundles/steam/metadata.py index 1bb3c59..a76b710 100644 --- a/bundles/steam/metadata.py +++ b/bundles/steam/metadata.py @@ -35,7 +35,7 @@ def initial_unit(metadata): 'ExecStart': f'/opt/steam/steamcmd.sh +login anonymous {install_games} validate +quit', }, 'Install': { - 'WantedBy': 'multi-user.target', + 'WantedBy': {'multi-user.target'}, }, }, }, diff --git a/bundles/systemd/metadata.py b/bundles/systemd/metadata.py index c9f7225..549c602 100644 --- a/bundles/systemd/metadata.py +++ b/bundles/systemd/metadata.py @@ -21,13 +21,13 @@ def units(metadata): if extension == 'service': units[name] = { 'Install': { - 'WantedBy': ['multi-user.target'], + 'WantedBy': {'multi-user.target'}, } } elif extension == 'timer': units[name] = { 'Install': { - 'WantedBy': ['timers.target'], + 'WantedBy': {'timers.target'}, } }