Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

setting bluepill config to default at /etc/bluepill.conf

  • Loading branch information...
commit e69e8cd9aaf1121ff89faad08108833111493483 1 parent c93cb04
@fagiani authored
Showing with 4 additions and 2 deletions.
  1. +4 −1 lib/bluepill.sh
  2. +0 −1  recipes/rails
View
5 lib/bluepill.sh
@@ -31,7 +31,7 @@ test -x \$BLUEPILL_BIN || { echo "\$BLUEPILL_BIN not installed";
else exit 5; fi; }
# Check for existence of needed config file and read it
-BLUEPILL_CONFIG=$BLUEPILL_CONFIG
+BLUEPILL_CONFIG=/etc/bluepill.conf
test -r \$BLUEPILL_CONFIG || { echo "\$BLUEPILL_CONFIG not existing";
if [ "\$1" = "stop" ]; then exit 0;
else exit 6; fi; }
@@ -59,4 +59,7 @@ esac
EOF
chmod +x /etc/init.d/bluepill
/usr/sbin/update-rc.d -f bluepill defaults
+ cat > /etc/bluepill.conf << EOF
+#just include here in ruby language your bluepill config
+EOF
}
View
1  recipes/rails
@@ -14,7 +14,6 @@ function defaults_rails {
R_ENV="production"
RUBY_RELEASE="p290"
REDIS_VERSION="2.2.4"
- BLUEPILL_CONFIG="/home/app/production/current/config/bluepill/production.pill"
}
function install_rails {
Please sign in to comment.
Something went wrong with that request. Please try again.