Sha256: 01d50d148450a812ed153d57c9f3f9180621369b36f6ab2b51e29d03e720d95a

Contents?: true

Size: 694 Bytes

Versions: 43

Compression:

Stored size: 694 Bytes

Contents

module Incline
  class CLI
    class Prepare
      
      private
      
      def install_db(shell)
        shell.with_stat('Installing MariaDB') do
          shell.sudo_exec 'debconf-set-selections <<< \'mariadb-server mysql-server/root_password password \''
          shell.sudo_exec 'debconf-set-selections <<< \'mariadb-server mysql-server/root_password_again password \''
          shell.apt_get 'install mariadb-server mariadb-client libmysqlclient-dev'
          shell.sudo_exec_ignore_code 'systemctl stop mysql.service'
          shell.sudo_exec 'systemctl start mysql.service'
          shell.sudo_exec 'systemctl enable mysql.service'
        end
      end
      
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
incline-0.3.14 lib/incline/cli/prepare/install_db.rb
incline-0.3.13 lib/incline/cli/prepare/install_db.rb
incline-0.3.12 lib/incline/cli/prepare/install_db.rb
incline-0.3.11 lib/incline/cli/prepare/install_db.rb
incline-0.3.10 lib/incline/cli/prepare/install_db.rb
incline-0.3.9 lib/incline/cli/prepare/install_db.rb
incline-0.3.8 lib/incline/cli/prepare/install_db.rb
incline-0.3.7 lib/incline/cli/prepare/install_db.rb
incline-0.3.6 lib/incline/cli/prepare/install_db.rb
incline-0.3.5 lib/incline/cli/prepare/install_db.rb
incline-0.3.4 lib/incline/cli/prepare/install_db.rb
incline-0.3.3 lib/incline/cli/prepare/install_db.rb
incline-0.3.2 lib/incline/cli/prepare/install_db.rb
incline-0.3.1 lib/incline/cli/prepare/install_db.rb
incline-0.3.0 lib/incline/cli/prepare/install_db.rb
incline-0.2.36 lib/incline/cli/prepare/install_db.rb
incline-0.2.35 lib/incline/cli/prepare/install_db.rb
incline-0.2.34 lib/incline/cli/prepare/install_db.rb
incline-0.2.28 lib/incline/cli/prepare/install_db.rb
incline-0.2.27 lib/incline/cli/prepare/install_db.rb