Skip to content

Commit b02cdb0

Browse files
try to make it use mariadb
1 parent a3fa5b2 commit b02cdb0

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

init-live.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
export PHP_MEMORY_LIMIT="512M"
3+
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"
4+
php console.php status
5+
php console.php app:enable solid
6+
sed -i '96 i\ RewriteRule ^\\.well-known/openid-configuration /apps/solid/openid [R=302,L]' /var/www/html/.htaccess
7+
sed -i "25 i\ 1 => 'server'," /var/www/html/config/config.php
8+
sed -i "26 i\ 2 => 'nextcloud.local'," /var/www/html/config/config.php
9+
sed -i "27 i\ 3 => 'thirdparty'," /var/www/html/config/config.php
10+
sed -i "28 i\ 4 => '$HOST'," /var/www/html/config/config.php
11+
echo configured

setup-test-server.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ docker run -d --name=nextcloud --network=host -v /root/tls:/tls solid-nextcloud
3030

3131
sleep 15
3232

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

0 commit comments

Comments
 (0)