From e70cd7e30d68671318f472b3e5b86a36a7ac87a5 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Mon, 17 Jun 2019 23:06:07 +0200 Subject: [PATCH] Remove roundcube sessions on boot --- roundcube.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/roundcube.nix b/roundcube.nix index a108277..f404415 100644 --- a/roundcube.nix +++ b/roundcube.nix @@ -101,14 +101,6 @@ in ${pkgs.sqlite}/bin/sqlite "${config.variables.roundcubeDataDir}/roundcube.sqlite" "DELETE FROM session;" fi ''; - serviceConfig.ExecStop = pkgs.writeScript "roundcube-delete-sessions" '' - #!${pkgs.stdenv.shell} - set -euo pipefail - if [ -s "${config.variables.roundcubeDataDir}/roundcube.sqlite" ]; then - # Just go ahead and remove the sessions on shutdown. - ${pkgs.sqlite}/bin/sqlite "${config.variables.roundcubeDataDir}/roundcube.sqlite" "DELETE FROM session;" - fi - ''; }; services.phpfpm.pools."${poolName}" = { listen = config.variables.roundcubePhpfpmHostPort;