Skip to content

Commit

Permalink
minor Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
teadur committed Oct 9, 2019
1 parent 6276e24 commit e8e19c0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 =="
Expand Down

0 comments on commit e8e19c0

Please sign in to comment.