From 7f0a6a5e0563e54c1bf798f1b9ba5d6e7004e5f8 Mon Sep 17 00:00:00 2001 From: rkaldung Date: Mon, 11 Aug 2014 14:30:22 +0200 Subject: [PATCH 1/5] added script --- script/install.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 script/install.sh diff --git a/script/install.sh b/script/install.sh new file mode 100644 index 000000000..05a7907cf --- /dev/null +++ b/script/install.sh @@ -0,0 +1,2 @@ +#!/bin/bash + From 5e7e1f9423f6a1a0f8ee51ca3c6f120081726fe3 Mon Sep 17 00:00:00 2001 From: rkaldung Date: Mon, 11 Aug 2014 14:33:29 +0200 Subject: [PATCH 2/5] added distro detection --- script/install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/script/install.sh b/script/install.sh index 05a7907cf..aee26438a 100644 --- a/script/install.sh +++ b/script/install.sh @@ -1,2 +1,15 @@ #!/bin/bash +get_distro(){ + arch=$(uname -m) + kernel=$(uname -r) + if [ -f /etc/lsb-release ]; then + os=$(lsb_release -s -d) + elif [ -f /etc/debian_version ]; then + os="Debian $(cat /etc/debian_version)" + elif [ -f /etc/redhat-release ]; then + os=`cat /etc/redhat-release` + else + os="$(uname -s) $(uname -r)" + fi +} From 3dbcf7f45ec3629b82e30b06f641250c39591857 Mon Sep 17 00:00:00 2001 From: rkaldung Date: Mon, 11 Aug 2014 20:23:37 +0200 Subject: [PATCH 3/5] fixed needed rails version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e42ffcc81..5fa0db1c3 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Getting Started ``` zammad@shell> cd zammad - zammad@shell> gem install rails + zammad@shell> gem install rails --version '~> 3.2.0' zammad@shell> vi Gemfile # enable libv8, execjs and therubyracer if needed! zammad@shell> sudo bundle install ``` From f4b23f99f3987d2370427a571771c2f7e09bf7b2 Mon Sep 17 00:00:00 2001 From: rkaldung Date: Mon, 11 Aug 2014 20:29:10 +0200 Subject: [PATCH 4/5] revert used rails version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fa0db1c3..a2149ca5b 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Getting Started ``` zammad@shell> cd zammad - zammad@shell> gem install rails --version '~> 3.2.0' + zammad@shell> gem install rails zammad@shell> vi Gemfile # enable libv8, execjs and therubyracer if needed! zammad@shell> sudo bundle install ``` From dcf746a89f6f0351421edd3ddd7a1739cdee8fbe Mon Sep 17 00:00:00 2001 From: rkaldung Date: Mon, 11 Aug 2014 22:08:10 +0200 Subject: [PATCH 5/5] workaround (see https://github.com/gregbell/active_admin/issues/3093) --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index c1b7050d2..d8b882f06 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,7 @@ gem 'json' # Gems used only for assets and not required # in production environments by default. group :assets do - gem 'sass-rails' + gem 'sass-rails', github: 'rails/sass-rails' gem 'coffee-rails' gem 'uglifier' end