mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
nextcloud: Allow re-running setup
- Retrieve a database password from configuration if one is set instead of generating new one. - Create database after starting the container. This is okay as database configuration is not set until maintenance:install operation is run. - Minor change to setting administrator password during install. Tests: - Update profile in Nextcloud and re-run setup. The updated settings are still available. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
614bea4511
commit
f8ddc774b0
2 files changed
+24
-17
No files matched your search
@@ -500,6 +500,7 @@ def podman_create(container_name: str, image_name: str, volume_name: str,
|
||||
directory = pathlib.Path('/etc/containers/systemd')
|
||||
directory.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
# Data is kept
|
||||
subprocess.run(['podman', 'volume', 'rm', '--force', volume_name],
|
||||
check=False)
|
||||
|
||||
|
||||
Reference in new issue
Block a user