no negation of the file checking

This commit is contained in:
Sebastian Hugentobler 2017-06-15 12:04:06 +02:00
parent 0eaa80950a
commit 133634aefb

View File

@ -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 \