Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ll():
- run("ls -lah")
- def aptup():
- run("apt-get update")
- def aptinstall(package):
- run("apt-get install -y %s" %package )
- def inscomposer():
- run("wget %s" % composerBin)
- def composer(args=''):
- run("php ~/composer.phar %s" % args)
- def pokapoka():
- run("curl ifconfig.co")
- #
- def install_mysql():
- # with settings(hide('warnings', 'stderr'), warn_only=True):
- # result = sudo('dpkg-query --show mysql-server')
- # if result.failed is False:
- # warn('MySQL is already installed')
- # return
- # mysql_password = prompt('Please enter MySQL root password:')
- sudo('echo "mysql-server-5.0 mysql-server/root_password password ' \
- '%s" | debconf-set-selections' % mysql_root_password)
- sudo('echo "mysql-server-5.0 mysql-server/root_password_again password ' \
- '%s" | debconf-set-selections' % mysql_root_password)
- aptinstall('mysql-server')
- def prepareenv():
- aptup()
- aptinstall('php5')
- inscomposer()
- aptinstall('git')
- aptinstall('mc')
- aptinstall('htop')
- aptinstall('strace')
- aptinstall('zip')
- aptinstall('unzip')
- aptinstall('curl')
- aptinstall('mysql-common')
- aptinstall('php5-mysql')
- aptinstall('php5-curl')
- install_mysql()
- aptinstall('phpmyadmin')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement