~1chb1n/charms/trusty/mariadb/fix-kilo

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Daniel Bartholomew
  • Date: 2014-09-24 21:01:18 UTC
  • Revision ID: dbart@mariadb.org-20140924210118-lr5pdf0s628ql74f
fix to mysql_install_db step and package install step

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
# Main Script
44
44
#-------------------------------------------------------------------------------
45
45
apt-get update -qq
46
 
apt-get -y install uuid libc6
 
46
apt-get -y install uuid pwgen dnsutils libaio1
47
47
 
48
48
cd /usr/local
49
49
if [ ! -d "bintar_${TREE}_rev${REV}" ]; then
102
102
  useradd -r -g mysql mysql
103
103
fi
104
104
 
105
 
if [ -d data ]; then
106
 
  echo "Data dir already exists. Not adding it again."
107
 
else
108
 
  ./scripts/mysql_install_db --user=mysql
109
 
  chown -R root:root .
110
 
  chown -R mysql data
111
 
fi
 
105
./scripts/mysql_install_db --user=mysql
 
106
chown -R root:root .
 
107
chown -R mysql data
112
108
 
113
109
if grep -q -e '/usr/local/mysql/bin:$PATH' /etc/profile; then
114
110
  echo "/etc/profile PATH entry already exists."