Merge pull request #121336 from markuskowa/upd-slurm

nixos/slurm: 20.11.5.1 -> 20.11.6.1, improve security
This commit is contained in:
markuskowa
2021-05-04 11:00:35 +02:00
committed by GitHub
2 changed files with 3 additions and 5 deletions
@@ -403,9 +403,7 @@ in
requires = [ "munged.service" "mysql.service" ];
preStart = ''
cp ${slurmdbdConf} ${configPath}
chmod 600 ${configPath}
chown ${cfg.user} ${configPath}
install -m 600 -o ${cfg.user} -T ${slurmdbdConf} ${configPath}
${optionalString (cfg.dbdserver.storagePassFile != null) ''
echo "StoragePass=$(cat ${cfg.dbdserver.storagePassFile})" \
>> ${configPath}