/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu
NameSizeModeActions
apache.py19290644editdlrm
apache.pyc13540644editdlrm
apache.pyo13540644editdlrm
ebs.py99380644editdlrm
ebs.pyc85590644editdlrm
ebs.pyo85590644editdlrm
installer.py35450644editdlrm
installer.pyc39700644editdlrm
installer.pyo39700644editdlrm
mysql.py48570644editdlrm
mysql.pyc33440644editdlrm
mysql.pyo33440644editdlrm
trac.py62700644editdlrm
trac.pyc48380644editdlrm
trac.pyo48380644editdlrm
__init__.py11120644editdlrm
__init__.pyc1600644editdlrm
__init__.pyo1600644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/mysql.pyc (3344B)
Ñò Å-õSc @szdZddklZddkZddkZddklZddklZddk Z dZ defd„ƒYZ dS( sR This installer will install mysql-server on an Ubuntu machine. In addition to the normal installation done by apt-get, it will also configure the new MySQL server to store it's data files in a different location. By default, this is /mnt but that can be configured in the [MySQL] section of the boto config file passed to the instance. iÿÿÿÿ(t InstallerN(t ShellCommand(t ConfigParsers‚ [MySQL] root_password = data_dir = tMySQLcBs&eZd„Zdd„Zd„ZRS(cCs*|idƒ|iddtdtƒdS(Nsapt-get updatesapt-get -y install mysql-servertnotifyt exit_on_error(truntTrue(tself((sF/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/mysql.pytinstall-s c Cs'tiidddƒ}t}tdƒ}|iƒ|iƒdjostidƒd}x?|idƒdjo(|djotidƒ|d }q]W|id ƒ|id ƒnt i i |d ƒ}t i i |ƒp|id |ƒt }n|id|ƒtddƒ}|idƒ|id|ƒ|idƒ|id|ƒ|idt i i |dƒƒ|iƒ|o"|id|ƒ|id ƒnxtƒ}|idƒ|iddƒ}|id ƒtidƒd|} x(|i| ƒdjotidƒqûWdS(NRtdata_dirs/mntsmysqladmin pingii secho 'quit' | mysql -u rootiis/etc/init.d/mysql stopspkill -9 mysqltmysqlsmkdir %sschown -R mysql:mysql %ss/etc/mysql/conf.d/use_mnt.cnftws# created by pyami s# use the %s volume for data s [mysqld] s datadir = %s s log_bin = %s s mysql-bin.logscp -pr /var/lib/mysql/* %s/s/etc/mysql/debian.cnftclienttpasswordsrecho "GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '%s' WITH GRANT OPTION;" | mysql(tbototconfigtgettFalseRRt getStatusttimetsleeptostpathtjointexistsRtopentwritetclosetstartRtread( RRR t fresh_installtis_mysql_running_commandtit mysql_pathtfpt config_parsert grant_command((sF/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/mysql.pytchange_data_dir8sJ   #            cCs|iƒ|iƒdS(N(R R&(R((sF/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/mysql.pytmaings N(t__name__t __module__R tNoneR&R'(((sF/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/mysql.pyR+s /( t__doc__t&boto.pyami.installers.ubuntu.installerRRRt boto.utilsRt boto.compatRRt ConfigSectionR(((sF/usr/lib/python2.6/site-packages/boto/pyami/installers/ubuntu/mysql.pyts