From 133634aefbecdbb9ff9b20c9d594e960e1c1b48e Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 15 Jun 2017 12:04:06 +0200 Subject: [PATCH] no negation of the file checking --- rootfs/etc/cont-init.d/00-nextcloud | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/cont-init.d/00-nextcloud b/rootfs/etc/cont-init.d/00-nextcloud index d96316e..601dc7c 100644 --- a/rootfs/etc/cont-init.d/00-nextcloud +++ b/rootfs/etc/cont-init.d/00-nextcloud @@ -12,7 +12,7 @@ PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -U $DB_USER -d $DB_NAME -c "SELECT EXIS if [ $? -ne 1 ]; then cd /var/lib/nextcloud - if [ ! -f /var/lib/nextcloud/config/config.php ]; then + if [ -f /var/lib/nextcloud/config/config.php ]; then sed -i -e "s/'installed' => true,/'installed' => false,/g" /var/lib/nextcloud/config/config.php fi s6-setuidgid nginx ./occ maintenance:install \