From 96035c2e2dd71e22b811319be6f90605862d9fe4 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 3 Apr 2024 15:13:46 -0700 Subject: [PATCH] nextcloud: Drop a repeated creation of systemd service file Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/nextcloud/privileged.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plinth/modules/nextcloud/privileged.py b/plinth/modules/nextcloud/privileged.py index 1f1febdba..b4b417eb8 100644 --- a/plinth/modules/nextcloud/privileged.py +++ b/plinth/modules/nextcloud/privileged.py @@ -31,7 +31,6 @@ _volume_path = pathlib.Path( _socket_config_file = pathlib.Path('/etc/mysql/mariadb.conf.d/' '99-freedombox.cnf') _systemd_location = pathlib.Path('/etc/systemd/system/') -_container_service_file = _systemd_location / f'{CONTAINER_NAME}.service' _cron_service_file = _systemd_location / 'nextcloud-cron-freedombox.service' _cron_timer_file = _systemd_location / 'nextcloud-cron-freedombox.timer' @@ -249,11 +248,8 @@ def _configure_ldap(): def _configure_systemd(): - systemd_content = subprocess.run( - ['podman', 'generate', 'systemd', '--new', CONTAINER_NAME], - capture_output=True, check=True).stdout.decode() + """Create systemd units files for container and cron jobs.""" # Create service and timer for running periodic php jobs. - _container_service_file.write_text(systemd_content, encoding='utf-8') nextcloud_cron_service_content = ''' [Unit] Description=Nextcloud cron.php job