From cf4478c646e92fa149b4ddc9002633195bfe0578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 17:20:25 +0200 Subject: [PATCH 01/35] added .travis.yml file --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..b2964272c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: ruby +rvm: + - 2.3.1 From 54945085528f53c0087b15c6946d7ea17dcab5d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 17:41:52 +0200 Subject: [PATCH 02/35] added dependencies to .travis.yml --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index b2964272c..9ce809cac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ language: ruby rvm: - 2.3.1 +before_install: + - sudo apt-get -qq update + - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server nginx From f021b89b0d38a6994f369af4d2272b07a0f03b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 17:43:34 +0200 Subject: [PATCH 03/35] changed dependencies to .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9ce809cac..e4034a9d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,4 @@ rvm: - 2.3.1 before_install: - sudo apt-get -qq update - - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server nginx + - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev From 283c483adf627b06fe1583d9aecbbbb76c924741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 17:45:58 +0200 Subject: [PATCH 04/35] changed .travis.yml --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index e4034a9d2..d7349de63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,5 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev + - export RAILS_ENV=production + - cp /config/database.yml.dist /config/database.yml \ No newline at end of file From dc5462e709ff79d43fed8dca12574735468d53ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 17:50:25 +0200 Subject: [PATCH 05/35] changed .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d7349de63..cc0228546 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - export RAILS_ENV=production - - cp /config/database.yml.dist /config/database.yml \ No newline at end of file + - cp config/database.yml.dist config/database.yml \ No newline at end of file From 20c93da0cf245ab09c1ee71bdf70c605dd18ca27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 17:51:23 +0200 Subject: [PATCH 06/35] changed .travis.yml --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cc0228546..3bbaeb358 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,3 @@ before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - export RAILS_ENV=production - - cp config/database.yml.dist config/database.yml \ No newline at end of file From 8acf7c299a5d970dc5b92b5ec47c47262840708b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 17:58:10 +0200 Subject: [PATCH 07/35] changed .travis.yml --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3bbaeb358..b920c03bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,5 +3,7 @@ rvm: - 2.3.1 before_install: - sudo apt-get -qq update - - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev + - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server + - mysql "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost';FLUSH PRIVILEGES;" - export RAILS_ENV=production + -cp config/database.yml.dist config/database.yml \ No newline at end of file From 72fe2be0a3400a21c073920e5337cfe0893db642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 18:04:11 +0200 Subject: [PATCH 08/35] changed .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b920c03bd..97037ead5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,6 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server - - mysql "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost';FLUSH PRIVILEGES;" + - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost';FLUSH PRIVILEGES;" - export RAILS_ENV=production -cp config/database.yml.dist config/database.yml \ No newline at end of file From 081bdaebc4430b8ebb47921fbf1332b4731ac920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 18:17:48 +0200 Subject: [PATCH 09/35] changed .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 97037ead5..a794d52dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,4 @@ before_install: - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost';FLUSH PRIVILEGES;" - export RAILS_ENV=production - -cp config/database.yml.dist config/database.yml \ No newline at end of file + - cp config/database.yml.dist config/database.yml From 7d5bb5ba8de18c99de50228c81ee7ed5b57e96af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Oct 2016 18:22:31 +0200 Subject: [PATCH 10/35] changed .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a794d52dd..4e0ce308e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,6 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server - - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost';FLUSH PRIVILEGES;" + - mysql -e 'CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost'; FLUSH PRIVILEGES;' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml From cbac19a5dacb43e9abfe90d77031742af3ccd359 Mon Sep 17 00:00:00 2001 From: Michiel Beijen Date: Mon, 24 Oct 2016 07:51:40 +0200 Subject: [PATCH 11/35] Add https url for download links --- README_Install_Mac.md | 2 +- README_Install_Ubuntu.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README_Install_Mac.md b/README_Install_Mac.md index d3ce3a625..ea62bc5fc 100644 --- a/README_Install_Mac.md +++ b/README_Install_Mac.md @@ -17,7 +17,7 @@ Get Zammad ````shell test -d ~/zammad/ || mkdir ~/zammad cd ~/zammad/ - curl -L -O http://ftp.zammad.com/zammad-latest.tar.bz2 | tar -xj + curl -L -O https://ftp.zammad.com/zammad-latest.tar.bz2 | tar -xj ```` Install Zammad diff --git a/README_Install_Ubuntu.md b/README_Install_Ubuntu.md index 93dc34a87..7e60c1908 100644 --- a/README_Install_Ubuntu.md +++ b/README_Install_Ubuntu.md @@ -14,7 +14,7 @@ ### Get Zammad * su zammad * cd ~ -* wget http://ftp.zammad.com/zammad-latest.tar.gz +* wget https://ftp.zammad.com/zammad-latest.tar.gz * tar -xzf zammad-latest.tar.gz * exit From 9488f63a67836b526dff8572fad55c016264702f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 10:48:25 +0200 Subject: [PATCH 12/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4e0ce308e..441deef90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,6 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server - - mysql -e 'CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost'; FLUSH PRIVILEGES;' + - mysql -e 'CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`; GRANT ALL PRIVILEGES ON zammad_prod.* TO `some_user`@`localhost`; FLUSH PRIVILEGES;' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml From 564ade281f8dbcc6382fbe61129b72aa0c35c3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 10:51:53 +0200 Subject: [PATCH 13/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 441deef90..a7586e931 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,6 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server - - mysql -e 'CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`; GRANT ALL PRIVILEGES ON zammad_prod.* TO `some_user`@`localhost`; FLUSH PRIVILEGES;' + - mysql --defautls-file=/etc/mysql/debian.cnf -e 'CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`; GRANT ALL PRIVILEGES ON zammad_prod.* TO `some_user`@`localhost`; FLUSH PRIVILEGES;' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml From a84e1693629e1e9844ca482f628b2b1a018b923b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 10:58:51 +0200 Subject: [PATCH 14/35] .travis.yml changes --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a7586e931..c5ba8b071 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,17 @@ +dist: trusty +sudo: required +addons: + apt: + packages: + - mysql-server-5.6 + - mysql-client-core-5.6 + - mysql-client-5.6 language: ruby rvm: - 2.3.1 before_install: - sudo apt-get -qq update - - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev mysql-server - - mysql --defautls-file=/etc/mysql/debian.cnf -e 'CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`; GRANT ALL PRIVILEGES ON zammad_prod.* TO `some_user`@`localhost`; FLUSH PRIVILEGES;' + - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev + - mysql -uroot -e 'CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`; GRANT ALL PRIVILEGES ON zammad_prod.* TO `some_user`@`localhost`; FLUSH PRIVILEGES;' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml From 1a60b95236b25505d6433aef8407c391a5a3bce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:01:43 +0200 Subject: [PATCH 15/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c5ba8b071..cc21821bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,6 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -uroot -e 'CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`; GRANT ALL PRIVILEGES ON zammad_prod.* TO `some_user`@`localhost`; FLUSH PRIVILEGES;' + - mysql -uroot -e 'CREATE USER some_user@localhost IDENTIFIED BY some_pass; GRANT ALL PRIVILEGES ON zammad_prod.* TO some_user@localhost; FLUSH PRIVILEGES;' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml From b89fdb4879e2cd692da75f06c1f67c2f48149cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:04:32 +0200 Subject: [PATCH 16/35] .travis.yml changes --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cc21821bd..d0edc7650 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -uroot -e 'CREATE USER some_user@localhost IDENTIFIED BY some_pass; GRANT ALL PRIVILEGES ON zammad_prod.* TO some_user@localhost; FLUSH PRIVILEGES;' + - mysql -uroot -e 'CREATE USER some_user@localhost IDENTIFIED BY some_pass;' + - mysql -uroot -e 'GRANT ALL PRIVILEGES ON zammad_prod.* TO some_user@localhost;' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml From 3da64cad2bc620d7b00b5ff1c774fac44ae22be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:06:15 +0200 Subject: [PATCH 17/35] .travis.yml changes --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index d0edc7650..9890f7403 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,8 @@ addons: - mysql-server-5.6 - mysql-client-core-5.6 - mysql-client-5.6 +services: + - mysql language: ruby rvm: - 2.3.1 From fb41faec19c0bc7d41f629d396971832f856aaec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:08:39 +0200 Subject: [PATCH 18/35] .travis.yml changes --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9890f7403..a47224943 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -uroot -e 'CREATE USER some_user@localhost IDENTIFIED BY some_pass;' - - mysql -uroot -e 'GRANT ALL PRIVILEGES ON zammad_prod.* TO some_user@localhost;' + - mysql -u root -e 'CREATE USER some_user@localhost IDENTIFIED BY some_pass;' + - mysql -u root -e 'GRANT ALL PRIVILEGES ON zammad_prod.* TO some_user@localhost;' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml From db19e2f6c0758710b4f0c3c8248a0e81479bc62f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:10:41 +0200 Subject: [PATCH 19/35] .travis.yml changes --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index a47224943..4388327ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,3 +18,9 @@ before_install: - mysql -u root -e 'GRANT ALL PRIVILEGES ON zammad_prod.* TO some_user@localhost;' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml +install: +- bundle install --without test development postgres +- rake db:create +- rake db:migrate +- rake db:seed +- rake assets:precompile From 461e17badda485d3ebd9ee981af6f4aef78586bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:13:54 +0200 Subject: [PATCH 20/35] .travis.yml changes --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4388327ec..e311fd03f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,7 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -u root -e 'CREATE USER some_user@localhost IDENTIFIED BY some_pass;' - - mysql -u root -e 'GRANT ALL PRIVILEGES ON zammad_prod.* TO some_user@localhost;' + - mysql --defaults-extra-file=/etc/mysql/debian.cnf -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost'; FLUSH PRIVILEGES;" - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From 25db4cc4a847816e5c7aeaff6fdc160ef6703bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:19:08 +0200 Subject: [PATCH 21/35] .travis.yml changes --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e311fd03f..dfbce8720 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,11 +14,12 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql --defaults-extra-file=/etc/mysql/debian.cnf -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost'; FLUSH PRIVILEGES;" + - mysql -e "create database IF NOT EXISTS test2;" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: - bundle install --without test development postgres +script: - rake db:create - rake db:migrate - rake db:seed From f8c7f6766a38f77121e87d26d170e5964bdb3c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:24:38 +0200 Subject: [PATCH 22/35] .travis.yml changes --- .pkgr.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.pkgr.yml b/.pkgr.yml index f052f7312..5b0bd20c5 100644 --- a/.pkgr.yml +++ b/.pkgr.yml @@ -11,7 +11,12 @@ targets: - postgresql - postgresql-server - postgresql-devel - + ubuntu-16.04: + dependencies: + - httpd + - postgresql + - postgresql-server + - postgresql-devel before: - uname -a - ruby -v From 852bd92e0148af13d5f032c01b5583f417a9922f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:38:06 +0200 Subject: [PATCH 23/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dfbce8720..f05258876 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -e "create database IF NOT EXISTS test2;" -uroot + - mysql -e "create user some_user@localhost IDENTIFIED BY some_pass;" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From d2bef928b134f841c67ac494abe08bd5c01798ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:41:49 +0200 Subject: [PATCH 24/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f05258876..270620eee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -e "create user some_user@localhost IDENTIFIED BY some_pass;" -uroot + - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From aa13f58059b302c750d7307ae0c19377ba25ee61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:45:50 +0200 Subject: [PATCH 25/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 270620eee..bd562d6c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" -uroot + - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';GRANT ALL PRIVILEGES ON some_user.* TO 'zammad_prod'@'localhost';" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From 2ab1446232d4c8b7ba48b3f01136a77044072d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 11:51:31 +0200 Subject: [PATCH 26/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bd562d6c3..be1f49cc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';GRANT ALL PRIVILEGES ON some_user.* TO 'zammad_prod'@'localhost';" -uroot + - mysql -e "CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`;GRANT ALL PRIVILEGES ON some_user.* TO `zammad_prod`@`localhost`;" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From dadaa0fe65e7c0fe5f5dc82976a666eb52f66a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:03:25 +0200 Subject: [PATCH 27/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index be1f49cc7..8930e407f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -e "CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`;GRANT ALL PRIVILEGES ON some_user.* TO `zammad_prod`@`localhost`;" -uroot + - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';GRANT ALL PRIVILEGES ON 'some_user.*' TO 'zammad_prod'@'localhost';" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From 830d7e7df4d6d8ba69aabd47df4ea2e63780869c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:06:22 +0200 Subject: [PATCH 28/35] .travis.yml changes --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8930e407f..d7461aa38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,8 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';GRANT ALL PRIVILEGES ON 'some_user.*' TO 'zammad_prod'@'localhost';" -uroot + - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" -uroot + - mysql -e "GRANT ALL PRIVILEGES ON 'some_user.*' TO 'zammad_prod'@'localhost';" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From c790d4dd2ee6e513eaeaf56230c573f311ecf71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:19:14 +0200 Subject: [PATCH 29/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d7461aa38..f33235f9c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" -uroot - - mysql -e "GRANT ALL PRIVILEGES ON 'some_user.*' TO 'zammad_prod'@'localhost';" -uroot + - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'zammad_prod'@'localhost';" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From 31570f76738c9fdd100dcd149e9d037867c21973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:25:06 +0200 Subject: [PATCH 30/35] .travis.yml changes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f33235f9c..f8e1b1c9e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" -uroot - - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'zammad_prod'@'localhost';" -uroot + - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';" -uroot - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From 589c94a4927f40befa58d67b6797485e4d55be75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:28:01 +0200 Subject: [PATCH 31/35] .travis.yml changes --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f8e1b1c9e..4a89fcf2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,8 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" -uroot - - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';" -uroot + - mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" + - mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';" - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From a8ad1b76e5c399ac50d88acfce5b2c9881cb5c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:29:52 +0200 Subject: [PATCH 32/35] .travis.yml changes --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4a89fcf2f..3132d63e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,8 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" - - mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';" + - mysql -u root -e "CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`;" + - mysql -u root -e "GRANT ALL PRIVILEGES ON zammad_prod.* TO `some_user`@`localhost`;" - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From 2a5d3dd8388194ae6569f403830f6c4adad7fa80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:32:56 +0200 Subject: [PATCH 33/35] .travis.yml changes --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3132d63e8..cef570780 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,8 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -u root -e "CREATE USER `some_user`@`localhost` IDENTIFIED BY `some_pass`;" - - mysql -u root -e "GRANT ALL PRIVILEGES ON zammad_prod.* TO `some_user`@`localhost`;" + - mysql -u root -e 'CREATE USER "some_user"@"localhost" IDENTIFIED BY "some_pass";' + - mysql -u root -e 'GRANT ALL PRIVILEGES ON zammad_prod.* TO "some_user"@"localhost";' - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: From 3985e9d7bf635d2885a4bd1ea1d083235f9eb704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:42:07 +0200 Subject: [PATCH 34/35] .travis.yml changes --- .travis.yml | 4 ++-- config/initializers/db_preferences_mysql.rb | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index cef570780..1544d3bba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,8 @@ rvm: before_install: - sudo apt-get -qq update - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - - mysql -u root -e 'CREATE USER "some_user"@"localhost" IDENTIFIED BY "some_pass";' - - mysql -u root -e 'GRANT ALL PRIVILEGES ON zammad_prod.* TO "some_user"@"localhost";' + - mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" + - mysql -u root -e "GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost';" - export RAILS_ENV=production - cp config/database.yml.dist config/database.yml install: diff --git a/config/initializers/db_preferences_mysql.rb b/config/initializers/db_preferences_mysql.rb index b5374e142..f416c7ae4 100644 --- a/config/initializers/db_preferences_mysql.rb +++ b/config/initializers/db_preferences_mysql.rb @@ -24,16 +24,16 @@ if ActiveRecord::Base.connection_config[:adapter] == 'mysql2' # rubocop:enable Rails/Exit # rubocop:enable Rails/Output end - elsif major.to_i < 10 - - # rubocop:disable Rails/Output - # rubocop:disable Rails/Exit - p '+++++++++++++++++++++++++++++++++++++++++++++++++++++' - p '+ I\'m sorry, MariaDB 10.0+ is required +' - p '+++++++++++++++++++++++++++++++++++++++++++++++++++++' - exit 1 - # rubocop:enable Rails/Exit - # rubocop:enable Rails/Output + elsif server_vendor == 'MariaDB' + if major.to_i < 10 + # rubocop:disable Rails/Output + # rubocop:disable Rails/Exit + p '+++++++++++++++++++++++++++++++++++++++++++++++++++++' + p '+ I\'m sorry, MariaDB 10.0+ is required +' + p '+++++++++++++++++++++++++++++++++++++++++++++++++++++' + exit 1 + # rubocop:enable Rails/Exit + # rubocop:enable Rails/Output end end From 917439316e0f2bedcda339e70cae760745f96901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 12:50:35 +0200 Subject: [PATCH 35/35] .travis.yml changes --- config/initializers/db_preferences_mysql.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/initializers/db_preferences_mysql.rb b/config/initializers/db_preferences_mysql.rb index f416c7ae4..61f282ed3 100644 --- a/config/initializers/db_preferences_mysql.rb +++ b/config/initializers/db_preferences_mysql.rb @@ -14,7 +14,6 @@ if ActiveRecord::Base.connection_config[:adapter] == 'mysql2' (major, minor) = server_version.split('.') if server_vendor == 'MySQL' if major.to_i < 5 || (major.to_i == 5 && minor.to_i < 6) - # rubocop:disable Rails/Output # rubocop:disable Rails/Exit p '+++++++++++++++++++++++++++++++++++++++++++++++++++++' @@ -24,9 +23,9 @@ if ActiveRecord::Base.connection_config[:adapter] == 'mysql2' # rubocop:enable Rails/Exit # rubocop:enable Rails/Output end + end elsif server_vendor == 'MariaDB' if major.to_i < 10 - # rubocop:disable Rails/Output # rubocop:disable Rails/Exit p '+++++++++++++++++++++++++++++++++++++++++++++++++++++' @@ -35,5 +34,5 @@ if ActiveRecord::Base.connection_config[:adapter] == 'mysql2' exit 1 # rubocop:enable Rails/Exit # rubocop:enable Rails/Output + end end -end