hosts/storage-2: Replace prepare script with tmpfiles
This commit is contained in:
parent
692da961d8
commit
15670ff541
@ -82,17 +82,10 @@ in {
|
|||||||
};
|
};
|
||||||
users.groups.data-mixcloud = {};
|
users.groups.data-mixcloud = {};
|
||||||
|
|
||||||
systemd.services = {
|
systemd.tmpfiles.rules = [
|
||||||
"youtube-dl-prepare" = {
|
"d /data/mixcloud - data-mixcloud data-mixcloud - -"
|
||||||
serviceConfig = {
|
];
|
||||||
Type = "oneshot";
|
|
||||||
RemainAfterExit = "true";
|
systemd.services = (mapAttrs' generateYoutubedlMixcloudUnits mixcloudSources);
|
||||||
};
|
|
||||||
script = ''
|
|
||||||
mkdir -p /data/mixcloud
|
|
||||||
chown -R data-mixcloud:data-mixcloud /data/mixcloud
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
} // (mapAttrs' generateYoutubedlMixcloudUnits mixcloudSources);
|
|
||||||
systemd.timers = (mapAttrs' generateYoutubedlMixcloudTimers mixcloudSources);
|
systemd.timers = (mapAttrs' generateYoutubedlMixcloudTimers mixcloudSources);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user