fix(radius): Don't lose our shit when copying files

This commit is contained in:
Tom Hubrecht 2024-04-08 23:10:59 +02:00
parent e2cb4a7dca
commit 9eb89a03ab

View file

@ -106,8 +106,10 @@ in
wants = [ "network.target" ];
preStart = ''
cp -R ${cfg.freeradius}/etc/raddb/* ${cfg.configDir}
cp -R ${rlm_python}/etc/raddb/* ${cfg.configDir}
mkdir -p ${cfg.configDir}
cp -R --no-preserve=mode ${cfg.freeradius}/etc/raddb/* ${cfg.configDir}
cp -R --no-preserve=mode ${rlm_python}/etc/raddb/* ${cfg.configDir}
chmod -R u+w ${cfg.configDir}