Commits

Mikhail Korobov committed 7b06238

code formatting

Comments (0)

Files changed (2)

fab_deploy/mysql.py

         puts('Mysql is already installed.')
         return
 
-    # this way mysql won't ask for password on installation
+    # this way mysql won't ask for a password on installation
+    # see http://serverfault.com/questions/19367/scripted-install-of-mysql-on-ubuntu
     aptitude_install('debconf-utils')
     passwd=env.conf['DB_PASSWORD']
     defaults = """mysql-server-5.0\tmysql-server/root_password_again\tpassword\t%s

fab_deploy/system.py

 
 
 @run_as('root')
-def aptitude_install(packages, repo=None, update=False):
-    if update:
-        with settings(warn_only=True):
-            run('aptitude update')
-    repo_arg = ('-t ' + repo) if repo else ''
-    run('aptitude install %s -y %s' % (repo_arg, packages,))
-
-
-@run_as('root')
 def setup_backports():
     run("echo 'deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free' > /etc/apt/sources.list.d/backports.sources.list")
     with settings(warn_only=True):
     append('.ssh/authorized_keys', ssh_key)
 
 
+@run_as('root')
+def aptitude_install(packages, repo=None, update=False):
+    if update:
+        with settings(warn_only=True):
+            run('aptitude update')
+    repo_arg = ('-t ' + repo) if repo else ''
+    run('aptitude install %s -y %s' % (repo_arg, packages,))
+
+
 #@run_as('root')
 #def install_backup_system():
 #    run('aptitude install -y s3cmd ruby rubygems libxml2-dev libxslt-dev libopenssl-ruby')