fix(faunus-ater): fix-media-permissions service

This commit is contained in:
Malte Tammena 2024-02-15 19:39:26 +01:00
parent c8f8bbe6d2
commit ef4854bf3a

View file

@ -74,9 +74,16 @@ in {
enable = true;
description = "Fix media permissions and ownership";
wantedBy = ["multi-user.target"];
script = ''
#!/bin/sh
set -exuo pipefail
chown -R media:media /data/media
chmod -R g+rw,o-rwx /data/media
'';
serviceConfig = {
Type = "simple";
ExecStart = "chown -R media:media /data/media && chmod -R g+rw,o-rwx /data/media";
WorkingDirectory = "/data/media";
Restart = "always";
};