aboutsummaryrefslogtreecommitdiff
path: root/virtual
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-23 20:36:38 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-23 20:36:38 +0100
commit03525bd497437a156958a19652587733301c0a8a (patch)
tree834f189c267d4b7b9505783ae145c5c1cf8d73aa /virtual
parent625e0bfd93fd32bc9b698f16f70a86dec0e1ef77 (diff)
downloadNix-03525bd497437a156958a19652587733301c0a8a.tar.gz
Nix-03525bd497437a156958a19652587733301c0a8a.tar.zst
Nix-03525bd497437a156958a19652587733301c0a8a.zip
Upgrade wallabag
Diffstat (limited to 'virtual')
-rw-r--r--virtual/modules/websites/tools/tools/wallabag.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/virtual/modules/websites/tools/tools/wallabag.nix b/virtual/modules/websites/tools/tools/wallabag.nix
index 22089da..03291dc 100644
--- a/virtual/modules/websites/tools/tools/wallabag.nix
+++ b/virtual/modules/websites/tools/tools/wallabag.nix
@@ -57,13 +57,14 @@ let
57 ldap_enabled_attribute: null 57 ldap_enabled_attribute: null
58 ''; 58 '';
59 webappDir = stdenv.mkDerivation rec { 59 webappDir = stdenv.mkDerivation rec {
60 __noChroot = true;
60 # Beware when upgrading, I probably messed up with the migrations table 61 # Beware when upgrading, I probably messed up with the migrations table
61 # (due to a psql bug in wallabag) 62 # (due to a psql bug in wallabag)
62 version = "2.3.2"; 63 version = "2.3.6";
63 name = "wallabag-${version}"; 64 name = "wallabag-${version}";
64 src = fetchurl { 65 src = fetchurl {
65 url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz"; 66 url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz";
66 sha256 = "17yczdvgl43j6wa7hksxi2b51afvyd56vdya6hbbv68iiba4jyh4"; 67 sha256 = "0m0dy3r94ks5pfxyb9vbgrsm0vrwdl3jd5wqwg4f5vd107lq90q1";
67 }; 68 };
68 patches = [ ./wallabag_ldap.patch ]; 69 patches = [ ./wallabag_ldap.patch ];
69 dontBuild = "true"; 70 dontBuild = "true";
@@ -87,8 +88,8 @@ let
87 if [ ! -f "${varDir}/currentWebappDir" -o \ 88 if [ ! -f "${varDir}/currentWebappDir" -o \
88 "${webappDir}" != "$(cat ${varDir}/currentWebappDir 2>/dev/null)" ]; then 89 "${webappDir}" != "$(cat ${varDir}/currentWebappDir 2>/dev/null)" ]; then
89 pushd ${webappDir} > /dev/null 90 pushd ${webappDir} > /dev/null
90 $wrapperDir/sudo -u wwwrun ./bin/console --env=prod doctrine:migrations:migrate --no-interaction
91 $wrapperDir/sudo -u wwwrun ./bin/console --env=prod cache:clear 91 $wrapperDir/sudo -u wwwrun ./bin/console --env=prod cache:clear
92 $wrapperDir/sudo -u wwwrun ./bin/console --env=prod doctrine:migrations:migrate --no-interaction
92 popd > /dev/null 93 popd > /dev/null
93 echo -n "${webappDir}" > ${varDir}/currentWebappDir 94 echo -n "${webappDir}" > ${varDir}/currentWebappDir
94 fi 95 fi