From 25fe8844e5849c902feb6cb00ba0b96e18411c17 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 18:18:32 +0000 Subject: [PATCH] Refine server_id generation and AppAPI disable guard Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/e94844f0-187d-4b52-9302-7e61d3e5804a Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- modules/nextcloud.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nextcloud.nix b/modules/nextcloud.nix index 47540c0..0b5e798 100755 --- a/modules/nextcloud.nix +++ b/modules/nextcloud.nix @@ -146,7 +146,7 @@ lib.mkIf config.sovran_systemsOS.services.nextcloud { php $INSTALL_DIR/occ config:system:set maintenance_window_start --type=integer --value=1 php $INSTALL_DIR/occ config:system:set memcache.local --value='\OC\Memcache\APCu' php $INSTALL_DIR/occ config:system:set memcache.locking --value='\OC\Memcache\APCu' - php $INSTALL_DIR/occ config:system:set server_id --value=\"\$(head -c 16 /dev/urandom | od -An -tx1 | tr -d ' \n' | head -c 32)\" + php $INSTALL_DIR/occ config:system:set server_id --value=\"\$(head -c 16 /dev/urandom | od -An -tx1 | tr -d ' \n')\" php $INSTALL_DIR/occ background:cron " @@ -157,7 +157,7 @@ lib.mkIf config.sovran_systemsOS.services.nextcloud { php $INSTALL_DIR/occ db:add-missing-columns php $INSTALL_DIR/occ db:add-missing-primary-keys php $INSTALL_DIR/occ maintenance:repair --include-expensive - php $INSTALL_DIR/occ app:disable app_api || true + php $INSTALL_DIR/occ app:info app_api >/dev/null 2>&1 && php $INSTALL_DIR/occ app:disable app_api || true " /run/wrappers/bin/su -s /bin/sh caddy -c "