mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Use OC and not NC
This commit is contained in:
parent
ac0323964f
commit
67940a89b3
@ -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',
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user