From e8e19c069836d6844e28f5ea13c0b9795ddd06aa Mon Sep 17 00:00:00 2001 From: Georg Kahest Date: Mon, 9 Sep 2019 20:40:56 +0300 Subject: [PATCH] minor Cleanup --- bin/setup | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bin/setup b/bin/setup index 9698a39d78..c0fbd95ff0 100755 --- a/bin/setup +++ b/bin/setup @@ -12,16 +12,12 @@ def system!(*args) end Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: puts "== Installing gem build deps ==" uid = `id -u` uid.delete!("\n") - # puts "uid: #{uid}" SUDO_PREFIX="" - unless (uid.to_s == "0") - puts uid - puts "me no root" + unless (uid == "0") + #puts uid SUDO_PREFIX="sudo" end system! "#{SUDO_PREFIX} apt-get update && #{SUDO_PREFIX} apt-get -y --no-install-recommends install libxml2 libxml2-dev postgresql-client postgresql-client-common libpq-dev" @@ -67,7 +63,7 @@ Dir.chdir APP_ROOT do # system! "cp config/database-example-development.yml config/database.yml" # end - puts "\n== Preparing datab ase ==" + puts "\n== Preparing database ==" system! "bin/rake db:setup" puts "\n== Removing old logs and tempfiles =="