fix purgin server specific addons

This commit is contained in:
cronekorkn 2022-11-26 15:34:52 +01:00
parent e7cf2b04e2
commit f4c8e8e1ad
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -97,7 +97,10 @@ for name, config in node.metadata.get('left4dead2/servers').items():
'owner': 'steam',
'group': 'steam',
}
for id in node.metadata.get('left4dead2/workshop'):
for id in [
*config.get('workshop', []),
*node.metadata.get('left4dead2/workshop'),
]:
files[f'/opt/steam/left4dead2-servers/{name}/left4dead2/addons/{id}.vpk'] = {
'content_type': 'any',
'owner': 'steam',