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 = {};
|
||||
|
||||
systemd.services = {
|
||||
"youtube-dl-prepare" = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = "true";
|
||||
};
|
||||
script = ''
|
||||
mkdir -p /data/mixcloud
|
||||
chown -R data-mixcloud:data-mixcloud /data/mixcloud
|
||||
'';
|
||||
};
|
||||
} // (mapAttrs' generateYoutubedlMixcloudUnits mixcloudSources);
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /data/mixcloud - data-mixcloud data-mixcloud - -"
|
||||
];
|
||||
|
||||
systemd.services = (mapAttrs' generateYoutubedlMixcloudUnits mixcloudSources);
|
||||
systemd.timers = (mapAttrs' generateYoutubedlMixcloudTimers mixcloudSources);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user