mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
move permission overwrite to better place before innstallation
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
cf148b6381
commit
32690ae48f
1 changed files with 8 additions and 9 deletions
|
|
@ -205,6 +205,14 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then
|
||||||
INSTALL_OPTIONS+=(--data-dir "$NEXTCLOUD_DATA_DIR")
|
INSTALL_OPTIONS+=(--data-dir "$NEXTCLOUD_DATA_DIR")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# We do our own permission check so the permission check is not needed
|
||||||
|
cat << DATADIR_PERMISSION_CONF > /var/www/html/config/datadir.permission.config.php
|
||||||
|
<?php
|
||||||
|
\$CONFIG = array (
|
||||||
|
'check_data_directory_permissions' => false
|
||||||
|
);
|
||||||
|
DATADIR_PERMISSION_CONF
|
||||||
|
|
||||||
echo "Installing with PostgreSQL database"
|
echo "Installing with PostgreSQL database"
|
||||||
INSTALL_OPTIONS+=(--database pgsql --database-name "$POSTGRES_DB" --database-user "$POSTGRES_USER" --database-pass "$POSTGRES_PASSWORD" --database-host "$POSTGRES_HOST")
|
INSTALL_OPTIONS+=(--database pgsql --database-name "$POSTGRES_DB" --database-user "$POSTGRES_USER" --database-pass "$POSTGRES_PASSWORD" --database-host "$POSTGRES_HOST")
|
||||||
|
|
||||||
|
|
@ -215,15 +223,6 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We do our own permission check so the permission check is not needed
|
|
||||||
cat << DATADIR_PERMISSION_CONF > /var/www/html/config/datadir.permission.config.php
|
|
||||||
<?php
|
|
||||||
\$CONFIG = array (
|
|
||||||
'check_data_directory_permissions' => false
|
|
||||||
);
|
|
||||||
DATADIR_PERMISSION_CONF
|
|
||||||
php /var/www/html/occ config:system:set check_data_directory_permissions --value=false --type=bool
|
|
||||||
|
|
||||||
# Try to force generation of appdata dir:
|
# Try to force generation of appdata dir:
|
||||||
php /var/www/html/occ maintenance:repair
|
php /var/www/html/occ maintenance:repair
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue