diff options
| author | Frederick Muriuki Muriithi | 2026-01-26 14:35:44 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-01-26 14:35:44 -0600 |
| commit | cfa66cfc180d4ab1aa794a73294dd88c715d705d (patch) | |
| tree | ad76bf73936b1ade56bd6a0ddaec505f8088803b | |
| parent | 3afa254436ee8c388b365805cff0c8ef3f20e700 (diff) | |
| download | gn-machines-cfa66cfc180d4ab1aa794a73294dd88c715d705d.tar.gz | |
gn-uploader: Rename TEMPORARY_DIRECTORY to SCRATCH_DIRECTORY
Thinking of it as a scratch directory help us disassociate it from the /tmp directory, that we generally want to avoid using in the first place.
| -rw-r--r-- | genenetwork/services/genenetwork.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/genenetwork/services/genenetwork.scm b/genenetwork/services/genenetwork.scm index f66dcd9..c5b30ef 100644 --- a/genenetwork/services/genenetwork.scm +++ b/genenetwork/services/genenetwork.scm @@ -765,7 +765,7 @@ a @code{<genenetwork-configuration>} record." (append (list #$data-directory) (find-files #$data-directory #:directories? #t) - (find-files #$(string-append gn-tmpdir "/gn-uploader-tmpdir") + (find-files #$(string-append gn-tmpdir "/gn-uploader-scratch") #:directories? #t))))))) (define (gn-uploader-gunicorn-app config) @@ -777,14 +777,14 @@ a @code{<genenetwork-configuration>} record." (source "/run/mysqld") (target source) (writable? #t))) - (gn-uploader-tmpdir (string-append gn-tmpdir "/gn-uploader-tmpdir")) + (gn-uploader-scratch (string-append gn-tmpdir "/gn-uploader-scratch")) (gn-uploader-conf (computed-file "gn-uploader.conf" (configuration-file-gexp `(("UPLOADER_SECRETS" ,secrets) ("SQL_URI" ,sql-uri) ("UPLOAD_FOLDER" ,(string-append data-directory "/uploads")) - ("TEMPORARY_DIRECTORY" ,gn-uploader-tmpdir) + ("SCRATCH_DIRECTORY" ,gn-uploader-scratch) ("AUTH_SERVER_URL" ,auth-server-url) ("GN2_SERVER_URL" ,gn2-server-url) ("SESSION_FILESYSTEM_CACHE_PATH" ,sessions-dir) @@ -842,7 +842,7 @@ a @code{<genenetwork-configuration>} record." (target source) (writable? #t)) (file-system-mapping - (source gn-uploader-tmpdir) + (source gn-uploader-scratch) (target source) (writable? #t)) (file-system-mapping |
