]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Upgrade wallabag
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 23 Jan 2019 19:36:38 +0000 (20:36 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 23 Jan 2019 19:36:38 +0000 (20:36 +0100)
virtual/modules/websites/tools/tools/wallabag.nix

index 22089dad9da07b8576a195f5bdfb3a74eb55da9b..03291dc47c37500b4e5b17d4dce6b7611a2daff8 100644 (file)
@@ -57,13 +57,14 @@ let
           ldap_enabled_attribute: null
       '';
     webappDir = stdenv.mkDerivation rec {
+      __noChroot = true;
       # Beware when upgrading, I probably messed up with the migrations table
       # (due to a psql bug in wallabag)
-      version = "2.3.2";
+      version = "2.3.6";
       name = "wallabag-${version}";
       src = fetchurl {
         url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz";
-        sha256 = "17yczdvgl43j6wa7hksxi2b51afvyd56vdya6hbbv68iiba4jyh4";
+        sha256 = "0m0dy3r94ks5pfxyb9vbgrsm0vrwdl3jd5wqwg4f5vd107lq90q1";
       };
       patches = [ ./wallabag_ldap.patch ];
       dontBuild = "true";
@@ -87,8 +88,8 @@ let
       if [ ! -f "${varDir}/currentWebappDir" -o \
           "${webappDir}" != "$(cat ${varDir}/currentWebappDir 2>/dev/null)" ]; then
         pushd ${webappDir} > /dev/null
-        $wrapperDir/sudo -u wwwrun ./bin/console --env=prod doctrine:migrations:migrate --no-interaction
         $wrapperDir/sudo -u wwwrun ./bin/console --env=prod cache:clear
+        $wrapperDir/sudo -u wwwrun ./bin/console --env=prod doctrine:migrations:migrate --no-interaction
         popd > /dev/null
         echo -n "${webappDir}" > ${varDir}/currentWebappDir
       fi