Skip to content

Commit

Permalink
add NC12
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed May 23, 2017
1 parent 7eaedb4 commit 0479dbb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 1 addition & 3 deletions etc/nextcloudpi-config.d/nc-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
#


# TODO maintenance mode

DESTDIR_=/home/pi
DESTDIR_=/media/USBdrive
BASEDIR_=/var/www
DBPASSWD_=ownyourbits

Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/nc-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
#

VER_=11.0.3
VER_=12.0.0
ADMINUSER_=admin
DBADMIN_=ncadmin
DBPASSWD_=ownyourbits
Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/nc-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#


BACKUPFILE_=/home/pi/file.tar
BACKUPFILE_=/media/USBdrive/nextcloud-bkp_xxxxxxxx.tar
BASEDIR_=/var/www
DBPASSWD_=ownyourbits
DBADMIN_=ncadmin
Expand Down
7 changes: 7 additions & 0 deletions nextcloud_lamp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,15 @@ EOF

cat > /etc/php/7.0/mods-available/opcache.ini <<EOF
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.file_cache=$OPCACHEDIR;
opcache.fast_shutdown=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
EOF

a2enmod http2
Expand Down
2 changes: 1 addition & 1 deletion nextcloudpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 )
cd /var/www/nextcloud
sudo -u www-data php occ config:system:set trusted_domains 1 --value=$IP
EOF
systemctl enable nextcloud-domain
systemctl enable nextcloud-domain # make sure this is called on last re-boot

# NEXTCLOUDPI UPDATES
##########################################
Expand Down

0 comments on commit 0479dbb

Please sign in to comment.