Skip to content

Commit 0061b63

Browse files
authored
Merge pull request #118 from vfreex/fix-115
Ensure config/apps.config.php get copied
2 parents d1dd0fb + f47f9f9 commit 0061b63

7 files changed

Lines changed: 28 additions & 0 deletions

File tree

10.0/apache/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ if version_greater "$image_version" "$installed_version"; then
3535
fi
3636
done
3737

38+
if [ ! -f /var/www/html/config/apps.config.php ]; then
39+
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
40+
fi
41+
3842
if [ "$installed_version" != "0.0.0~unknown" ]; then
3943
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
4044

10.0/fpm/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ if version_greater "$image_version" "$installed_version"; then
3535
fi
3636
done
3737

38+
if [ ! -f /var/www/html/config/apps.config.php ]; then
39+
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
40+
fi
41+
3842
if [ "$installed_version" != "0.0.0~unknown" ]; then
3943
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
4044

11.0/apache/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ if version_greater "$image_version" "$installed_version"; then
3535
fi
3636
done
3737

38+
if [ ! -f /var/www/html/config/apps.config.php ]; then
39+
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
40+
fi
41+
3842
if [ "$installed_version" != "0.0.0~unknown" ]; then
3943
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
4044

11.0/fpm/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ if version_greater "$image_version" "$installed_version"; then
3535
fi
3636
done
3737

38+
if [ ! -f /var/www/html/config/apps.config.php ]; then
39+
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
40+
fi
41+
3842
if [ "$installed_version" != "0.0.0~unknown" ]; then
3943
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
4044

12.0/apache/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ if version_greater "$image_version" "$installed_version"; then
3535
fi
3636
done
3737

38+
if [ ! -f /var/www/html/config/apps.config.php ]; then
39+
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
40+
fi
41+
3842
if [ "$installed_version" != "0.0.0~unknown" ]; then
3943
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
4044

12.0/fpm/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ if version_greater "$image_version" "$installed_version"; then
3535
fi
3636
done
3737

38+
if [ ! -f /var/www/html/config/apps.config.php ]; then
39+
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
40+
fi
41+
3842
if [ "$installed_version" != "0.0.0~unknown" ]; then
3943
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
4044

docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ if version_greater "$image_version" "$installed_version"; then
3535
fi
3636
done
3737

38+
if [ ! -f /var/www/html/config/apps.config.php ]; then
39+
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
40+
fi
41+
3842
if [ "$installed_version" != "0.0.0~unknown" ]; then
3943
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
4044

0 commit comments

Comments
 (0)