~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to packaging/deb-wheezy/mysql-community-server.preinst

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-04-16 20:07:10 UTC
  • mto: (1.3.9 vivid-proposed)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20150416200710-pcrsa022082zj46k
Tags: upstream-5.6.24
ImportĀ upstreamĀ versionĀ 5.6.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
 
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
 
3
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
4
4
#
5
5
# This program is free software; you can redistribute it and/or modify
6
6
# it under the terms of the GNU General Public License as published by
67
67
 
68
68
                if ! getent passwd mysql >/dev/null;
69
69
                then
70
 
                        adduser --ingroup mysql --system --disabled-login --no-create-home --home /nowhere --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
 
70
                        adduser --ingroup mysql --system --disabled-login --no-create-home --home ${MYSQLDATA} --shell /bin/false --gecos "MySQL Server" mysql >/dev/null
71
71
                fi
72
72
 
73
73
                if [ ! -d ${MYSQLDATA} -a ! -L ${MYSQLDATA} ];
74
74
                then
75
75
                        mkdir ${MYSQLDATA}
76
76
                        chown mysql:mysql ${MYSQLDATA}
77
 
                        chmod 700 ${MYSQLDATA}
 
77
                        chmod 750 ${MYSQLDATA}
78
78
                fi
79
79
 
80
80
                if [ ! -d ${MYSQLLOG} -a ! -L ${MYSQLLOG} ];