Magellan Linux

Diff of /smage/trunk/core/mariadb/mariadb-10.1.11-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8482 by niro, Thu Feb 4 12:40:37 2016 UTC revision 8483 by niro, Thu Feb 4 12:43:18 2016 UTC
# Line 271  src_install_mariadb() Line 271  src_install_mariadb()
271   minstallunit mysqld.socket || die   minstallunit mysqld.socket || die
272  }  }
273    
274  preinstall_mysql()  preinstall_mariadb()
275  {  {
276   # adding mysql user   # adding mysql user
277   mgroupadd -o "-g 60" mysql   mgroupadd -o "-g 60" mysql
278   museradd -o "-u 60 -g mysql -d /var/lib/mysql -s /bin/false" mysql   museradd -o "-u 60 -g mysql -d /var/lib/mysql -s /bin/false" mysql
279  }  }
280    
281  postinstall_mysql()  postinstall_mariadb()
282  {  {
283   # create a database if none exists   # create a database if none exists
284   if [[ ! -d /var/lib/mysql/mysql ]]   if [[ ! -d /var/lib/mysql/mysql ]]
# Line 300  postinstall_mysql() Line 300  postinstall_mysql()
300   mstartunit mysqld.service   mstartunit mysqld.service
301  }  }
302    
303  postremove_mysql()  postremove_mariadb()
304  {  {
305   if [ ! -f /usr/sbin/mysqld ]   if [ ! -f /usr/sbin/mysqld ]
306   then   then

Legend:
Removed from v.8482  
changed lines
  Added in v.8483