Skip to content

Commit

Permalink
try to make it use mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Jun 17, 2022
1 parent a3fa5b2 commit b02cdb0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions init-live.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
export PHP_MEMORY_LIMIT="512M"
php console.php maintenance:install --admin-user admin --admin-pass $MARIADB_ROOT_PASSWORD --database "mysql" --database-name "nextcloud" --database-user "root" --database-pass "$MARIADB_ROOT_PASSWORD" --database-host "db"
php console.php status
php console.php app:enable solid
sed -i '96 i\ RewriteRule ^\\.well-known/openid-configuration /apps/solid/openid [R=302,L]' /var/www/html/.htaccess
sed -i "25 i\ 1 => 'server'," /var/www/html/config/config.php
sed -i "26 i\ 2 => 'nextcloud.local'," /var/www/html/config/config.php
sed -i "27 i\ 3 => 'thirdparty'," /var/www/html/config/config.php
sed -i "28 i\ 4 => '$HOST'," /var/www/html/config/config.php
echo configured
3 changes: 1 addition & 2 deletions setup-test-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ docker run -d --name=nextcloud --network=host -v /root/tls:/tls solid-nextcloud

sleep 15

docker exec -u www-data -it -e SERVER_ROOT=https://$HOST nextcloud sh /init.sh
docker exec -u www-data -it -e SERVER_ROOT=https://$HOST nextcloud sed -i "28 i\ 4 => '$HOST'," /var/www/html/config/config.php
docker exec -u www-data -it -e HOST=$HOST -e MARIADB_ROOT_PASSWORD=$MARIADB_ROOT_PASSWORD nextcloud sh /init-live.sh

0 comments on commit b02cdb0

Please sign in to comment.