~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to support-files/rpm/server-postin.sh

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
  # Create a MySQL user and group. Do not report any problems if it already
24
24
  # exists.
25
25
  groupadd -r %{mysqld_group} 2> /dev/null || true
26
 
  useradd -M -r -d $datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true 
 
26
  useradd -M -r --home $datadir --shell /sbin/nologin --comment "MySQL server" --gid %{mysqld_group} %{mysqld_user} 2> /dev/null || true 
27
27
  # The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
28
 
  usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
 
28
  usermod --gid %{mysqld_group} %{mysqld_user} 2> /dev/null || true
29
29
 
30
30
  # Change permissions so that the user that will run the MySQL daemon
31
31
  # owns all database files.
32
32
  chown -R %{mysqld_user}:%{mysqld_group} $datadir
33
33
 
34
 
  if [ ! -e $datadir ]; then
 
34
  if [ ! -e $datadir/mysql ]; then
35
35
    # Create data directory
36
36
    mkdir -p $datadir/{mysql,test}
37
37