summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorMatt McHenry <github@matt.mchenryfamily.org>2016-03-18 20:53:37 -0400
committerMatt McHenry <github@matt.mchenryfamily.org>2016-03-20 13:56:54 -0400
commit447c97f92987df984d5be59f99fcbed859a490f7 (patch)
tree8760d5211ffa8bd18878e51d82ebee99a4e3c45d /nixos/modules
parent954925771482b50493a24615c6e7e82e044a4fdf (diff)
downloadnixlib-447c97f92987df984d5be59f99fcbed859a490f7.tar
nixlib-447c97f92987df984d5be59f99fcbed859a490f7.tar.gz
nixlib-447c97f92987df984d5be59f99fcbed859a490f7.tar.bz2
nixlib-447c97f92987df984d5be59f99fcbed859a490f7.tar.lz
nixlib-447c97f92987df984d5be59f99fcbed859a490f7.tar.xz
nixlib-447c97f92987df984d5be59f99fcbed859a490f7.tar.zst
nixlib-447c97f92987df984d5be59f99fcbed859a490f7.zip
crashplan: 3.6.4 -> 4.6.0
* the major change is to set TARGETDIR=${vardir}, and symlink from
  ${vardir} back to ${out} instead of the other way around.  this
  gives CP more liberty to write to more directories -- in particular
  it seems to want to write some configuration files outside of conf?

* run.conf does not need 'export'

* minor tweaks to CrashPlanDesktop.patch
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/backup/crashplan.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/backup/crashplan.nix b/nixos/modules/services/backup/crashplan.nix
index 74643d1d4635..46d4c5192d9e 100644
--- a/nixos/modules/services/backup/crashplan.nix
+++ b/nixos/modules/services/backup/crashplan.nix
@@ -48,6 +48,14 @@ with lib;
         ensureDir ${crashplan.vardir}/cache 700
         ensureDir ${crashplan.vardir}/backupArchives 700
         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 $x ]; then
+            true;
+          else
+            ln -s ${crashplan}/$x ${crashplan.vardir}/$x;
+          fi;
+        done
       '';
 
       serviceConfig = {