fix(faunus-ater): fix-media-permissions service
This commit is contained in:
parent
c8f8bbe6d2
commit
ef4854bf3a
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue