From 62daf640bda7bf905d28516f83553b77914ed501 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 9 Feb 2017 20:22:01 +0100 Subject: [PATCH] UTF8mb4 is not yet supported --- production/owncloud-startup-script.sh | 40 ++++++++++++++------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/production/owncloud-startup-script.sh b/production/owncloud-startup-script.sh index be321f0..788750c 100644 --- a/production/owncloud-startup-script.sh +++ b/production/owncloud-startup-script.sh @@ -310,7 +310,7 @@ then echo "sudo nano /etc/network/interfaces" echo echo "If you experience any bugs, please report it here:" - echo "https://github.com/owncloud/vm/issues/new" + echo "https://github.com/techandme/owncloud-vm/issues/new" echo -e "\e[32m" read -p "Press any key to continue..." -n1 -s echo -e "\e[0m" @@ -367,27 +367,29 @@ bash $SCRIPTS/change_mysql_pass.sh && wait if [ $? -eq 0 ] then rm $SCRIPTS/change_mysql_pass.sh -echo "[mysqld]" >> /root/.my.cnf -echo "innodb_large_prefix=on" >> /root/.my.cnf -echo "innodb_file_format=barracuda" >> /root/.my.cnf -echo "innodb_file_per_table=1" >> /root/.my.cnf +#echo "[mysqld]" >> /root/.my.cnf +#echo "innodb_large_prefix=on" >> /root/.my.cnf +#echo "innodb_file_format=barracuda" >> /root/.my.cnf +#echo "innodb_file_per_table=1" >> /root/.my.cnf fi +### Not supported yet: + # Enable UTF8mb4 (4-byte support) -OCDB=owncloud_db -PW_FILE=/var/mysql_password.txt -echo -echo "Enabling UTF8mb4 support on $OCDB...." -sudo /etc/init.d/mysql restart -RESULT="mysqlshow --user=root --password=$(cat $PW_FILE) $OCDB| grep -v Wildcard | grep -o $OCDB" -if [ "$RESULT" == "$OCDB" ]; then - mysql -u root -e "ALTER DATABASE $OCDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;" -fi -if [ $? -eq 0 ] -then -sudo -u www-data $OCPATH/occ config:system:set mysql.utf8mb4 --type boolean --value="true" -sudo -u www-data $OCPATH/occ maintenance:repair -fi +#OCDB=owncloud_db +#PW_FILE=/var/mysql_password.txt +#echo +#echo "Enabling UTF8mb4 support on $OCDB...." +#sudo /etc/init.d/mysql restart +#RESULT="mysqlshow --user=root --password=$(cat $PW_FILE) $OCDB| grep -v Wildcard | grep -o $OCDB" +#if [ "$RESULT" == "$OCDB" ]; then +# mysql -u root -e "ALTER DATABASE $OCDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;" +#fi +#if [ $? -eq 0 ] +#then +#sudo -u www-data $OCPATH/occ config:system:set mysql.utf8mb4 --type boolean --value="true" +#sudo -u www-data $OCPATH/occ maintenance:repair +#fi # Install phpMyadmin bash $SCRIPTS/phpmyadmin_install_ubuntu16.sh