This commit is contained in:
Daniel Hansson 2017-07-24 01:40:04 +02:00 committed by GitHub
parent be7f8c1a52
commit 942d3eaf23

View File

@ -275,9 +275,10 @@ echo "Please be patient, it may take a while."
sudo /etc/init.d/mysql reload & spinner_loading
#mysqladmin shutdown & spinner_loading
#systemctl restart mariadb & spinner_loading
RESULT="mysqlshow --user=root --password=$MARIADBMYCNFPASS $NCCONFIGDB| grep -v Wildcard | grep -o $NCCONFIGDB"
if [ "$RESULT" == "$NCCONFIGDB" ]; then
check_command mysql -u root -e "ALTER DATABASE $NCCONFIGDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
RESULT="$(mysqlshow --user=root --password=$MARIADBMYCNFPASS $NCCONFIGDB | grep -v Wildcard | grep -o $NCCONFIGDB)"
if [ "$RESULT" == "$NCCONFIGDB" ]
then
check_command 'mysql -u root -e "ALTER DATABASE $NCCONFIGDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"'
wait
fi
check_command sudo -u www-data $NCPATH/occ config:system:set mysql.utf8mb4 --type boolean --value="true"