Use OC and not NC

This commit is contained in:
enoch85 2016-06-13 22:50:45 +02:00
parent ac0323964f
commit 67940a89b3
2 changed files with 13 additions and 13 deletions

View File

@ -78,10 +78,10 @@ sed -i "s|);||g" $NCPATH/config/config.php
# Add the needed config to Nextclouds config.php
cat <<ADD_TO_CONFIG>> $NCPATH/config/config.php
'memcache.local' => '\\NC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => true,
'memcache.distributed' => '\\NC\\Memcache\\Redis',
'memcache.locking' => '\\NC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '$REDIS_SOCK',

View File

@ -22,7 +22,7 @@ MYSQL_PASS=$(cat /dev/urandom | tr -dc "a-zA-Z0-9@#*=" | fold -w $SHUF | head -n
PW_FILE=/var/mysql_password.txt
# Directories
SCRIPTS=/var/scripts
HTML=/var/www
HTML=/var/www/html
NCPATH=$HTML/nextcloud
NCDATA=/var/ncdata
# Apache vhosts
@ -410,15 +410,15 @@ bash $SCRIPTS/security.sh
rm $SCRIPTS/security.sh
# Download and install Documents
if [ -d $NCPATH/apps/documents ]; then
sleep 1
else
wget -q https://github.com/nextcloud/documents/archive/master.zip -P $NCPATH/apps
cd $NCPATH/apps
unzip -q master.zip
rm master.zip
mv documents-master/ documents/
fi
#if [ -d $NCPATH/apps/documents ]; then
#sleep 1
#else
#wget -q https://github.com/nextcloud/documents/archive/master.zip -P $NCPATH/apps
#cd $NCPATH/apps
#unzip -q master.zip
#rm master.zip
#mv documents-master/ documents/
#fi
# Enable documents
#if [ -d $NCPATH/apps/documents ]; then