Remove roundcube sessions on boot
This commit is contained in:
		
					parent
					
						
							
								a39c6f7c27
							
						
					
				
			
			
				commit
				
					
						e70cd7e30d
					
				
			
		
					 1 changed files with 0 additions and 8 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Daniel Frank
				Daniel Frank