feat(installer): add the --storage-path flag (#2865)

### Description

Add the `--storage-path` flag to the installer to configure a custom
storage path out of the box.

On existing installation, we check that the 'storage.path' in the
configuration file is the same as the one provided by the installer.
This ensures that we don't update the nginx configuration file with an
invalid storage path.
This commit is contained in:
Jonas L 2024-01-01 14:38:05 +01:00 committed by GitHub
parent 5bd8ee0476
commit 5b23852f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 7 deletions

View file

@ -44,6 +44,6 @@ server {
location /api/_media {
internal;
# This alias path must match the 'storage.path' configuration field.
alias @@STORAGE_DIR@@;
alias @@STORAGE_PATH@@;
}
}