Browse Source

Add mariadb socket

Bob Mottram 8 years ago
parent
commit
5ba649d8dd
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/freedombone-utils-database

+ 7
- 0
src/freedombone-utils-database View File

@@ -162,6 +162,13 @@ function install_mariadb {
162 162
         exit 34672
163 163
     fi
164 164
 
165
+    if [ ! -f /etc/mysql/conf.d/my.cnf ]; then
166
+        echo $'/etc/mysql/conf.d/my.cnf not found'
167
+        exit 6376245
168
+    fi
169
+    echo 'socket = /var/run/mysqld/mysqld.sock' >> /etc/mysql/conf.d/my.cnf
170
+    systemctl restart mysql
171
+
165 172
     mysqladmin -u root password "$MARIADB_PASSWORD"
166 173
     mark_completed $FUNCNAME
167 174
 }