1
0

hosts/storage-2: Replace prepare script with tmpfiles

This commit is contained in:
clerie 2024-02-18 14:58:45 +01:00
parent 692da961d8
commit 15670ff541

View File

@ -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);
} }