nextcloud: fix, php 7.1, remove redis

This commit is contained in:
Wonderfall
2017-02-15 17:36:36 +01:00
parent e3c4fa505b
commit c482784782
45 changed files with 128 additions and 1074 deletions

View File

@ -29,13 +29,6 @@ cat > $CONFIGFILE <<EOF;
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => '/tmp/redis.sock',
'port' => 0,
'timeout' => 0.0,
),
'instanceid' => '$instanceid',
);
?>
@ -74,7 +67,7 @@ echo "Starting automatic configuration..."
# Execute ownCloud's setup step, which creates the ownCloud database.
# It also wipes it if it exists. And it updates config.php with database
# settings and deletes the autoconfig.php file.
(cd /nextcloud; php7 index.php)
(cd /nextcloud; php7.1 index.php)
echo "Automatic configuration finished."
# Update config.php.
@ -88,7 +81,7 @@ echo "Automatic configuration finished."
# Use PHP to read the settings file, modify it, and write out the new settings array.
CONFIG_TEMP=$(/bin/mktemp)
php7 <<EOF > $CONFIG_TEMP && mv $CONFIG_TEMP $CONFIGFILE
php7.1 <<EOF > $CONFIG_TEMP && mv $CONFIG_TEMP $CONFIGFILE
<?php
include("/config/config.php");