diff --git a/nixos/modules/services/backup/crashplan.nix b/nixos/modules/services/backup/crashplan.nix index 94aa3b17b663..a69526f968b0 100644 --- a/nixos/modules/services/backup/crashplan.nix +++ b/nixos/modules/services/backup/crashplan.nix @@ -50,11 +50,8 @@ with lib; ensureDir ${crashplan.vardir}/log 777 cp -avn ${crashplan}/conf.template/* ${crashplan.vardir}/conf for x in app.asar bin EULA.txt install.vars lang lib libjniwrap64.so libjniwrap.so libjtux64.so libjtux.so libmd564.so libmd5.so share skin upgrade; do - if [ -e ${crashplan.vardir}/$x ]; then - true; - else - ln -s ${crashplan}/$x ${crashplan.vardir}/$x; - fi; + rm -f ${crashplan.vardir}/$x; + ln -sf ${crashplan}/$x ${crashplan.vardir}/$x; done '';