From a9aa14ce7fa46d56e2f11a390408ede04e2e0921 Mon Sep 17 00:00:00 2001 From: Ralf Lang Date: Fri, 27 Mar 2026 12:36:26 +0100 Subject: [PATCH 1/2] fix: Run migrations as root --- .../workflows/ubuntu-2404-lamp-integration-test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu-2404-lamp-integration-test.yml b/.github/workflows/ubuntu-2404-lamp-integration-test.yml index 4f7f554..1cccf92 100644 --- a/.github/workflows/ubuntu-2404-lamp-integration-test.yml +++ b/.github/workflows/ubuntu-2404-lamp-integration-test.yml @@ -103,7 +103,13 @@ jobs: # Set ownership for Apache sudo chown -R www-data:www-data /var/www/horde - sudo chmod -R 755 /var/www/horde + + # Set correct permissions: directories 755, files 644 + sudo find /var/www/horde -type d -exec chmod 755 {} \; + sudo find /var/www/horde -type f -exec chmod 644 {} \; + + # Make scripts executable + sudo chmod +x /var/www/horde/vendor/bin/* # Ensure var directories are writable sudo chmod -R 775 /var/www/horde/var @@ -189,7 +195,7 @@ jobs: sudo hordectl configure auth --driver=sql --encryption=ssha - sudo -u www-data /var/www/horde/vendor/bin/horde-db-migrate up + sudo /var/www/horde/vendor/bin/horde-db-migrate up - name: Configure admin secret for API run: | From 2b8cd5b7308b54ee8039dea9b00762c18d42a696 Mon Sep 17 00:00:00 2001 From: Ralf Lang Date: Fri, 27 Mar 2026 13:03:19 +0100 Subject: [PATCH 2/2] fix(ci): run migrations from install dir with proper composer config --- .github/workflows/ubuntu-2404-lamp-integration-test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu-2404-lamp-integration-test.yml b/.github/workflows/ubuntu-2404-lamp-integration-test.yml index 1cccf92..ee3e7e5 100644 --- a/.github/workflows/ubuntu-2404-lamp-integration-test.yml +++ b/.github/workflows/ubuntu-2404-lamp-integration-test.yml @@ -99,7 +99,8 @@ jobs: # Install composer dependencies cd /var/www/horde - sudo composer install --no-dev --no-interaction --prefer-dist + sudo COMPOSER_ALLOW_SUPERUSER=1 composer config minimum-stability dev + sudo COMPOSER_ALLOW_SUPERUSER=1 composer install --no-interaction --prefer-dist # Set ownership for Apache sudo chown -R www-data:www-data /var/www/horde @@ -195,7 +196,8 @@ jobs: sudo hordectl configure auth --driver=sql --encryption=ssha - sudo /var/www/horde/vendor/bin/horde-db-migrate up + cd /var/www/horde + sudo -u www-data vendor/bin/horde-db-migrate up - name: Configure admin secret for API run: |