Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix migration #113

Merged
merged 2 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions root/etc/e-smith/events/actions/nethserver-nextcloud-conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ fi

if [[ -n $database ]]; then
# we still use mariadb55, this is wrong we need rh-mariadb105

# Make sure loglevel is set to 2 (see https://github.com/nextcloud/server/pull/27334)
OCC "config:system:set loglevel --value=2 --type=integer"
gsanchietti marked this conversation as resolved.
Show resolved Hide resolved
OCC "maintenance:mode --on"
# accessibility takes a lot of PHP ressources but is a mandatory
# else white NC dashboard (nextcloud/server#25742)
Expand Down Expand Up @@ -87,6 +90,9 @@ if [[ -n $database ]]; then

if ! databaseTest ; then
OCC config:system:set dbhost --value="localhost:/run/rh-mariadb105-mariadb/nextcloud-mysql.sock" --type="string"
if [[ $? -gt 0 ]]; then
gsanchietti marked this conversation as resolved.
Show resolved Hide resolved
exitOnError "[ERROR] Can't configure socket for mysql database"
fi
/usr/bin/mysql -e "drop database nextcloud;"

# Alter database for migration
Expand Down
2 changes: 1 addition & 1 deletion root/usr/local/sbin/occ
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

# OCC wrapper running PHP from SCL

runuser -u apache -- scl enable rh-php73 -- php -d memory_limit=512M /usr/share/nextcloud/occ "$@"
runuser -u apache -- scl enable rh-php73 -- php -d memory_limit=1024M /usr/share/nextcloud/occ "$@"
gsanchietti marked this conversation as resolved.
Show resolved Hide resolved