Skip to content

Commit

Permalink
Merge branch '20.04-dev' into 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
svpernova09 committed Oct 23, 2020
2 parents 4c0037e + bbd9539 commit 3374c3a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
10 changes: 5 additions & 5 deletions scripts/features/timescaledb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ sudo apt-get update

# Now install appropriate package for PG version
if [ -f ~/.homestead-features/wsl_user_name ]; then
sudo apt-get -y install timescaledb-oss-postgresql-12
sudo apt-get -y install timescaledb-postgresql-12
else
sudo apt-get -y install timescaledb-oss-postgresql-9.6
sudo apt-get -y install timescaledb-oss-postgresql-10
sudo apt-get -y install timescaledb-oss-postgresql-11
sudo apt-get -y install timescaledb-oss-postgresql-12
sudo apt-get -y install timescaledb-postgresql-9.6
sudo apt-get -y install timescaledb-postgresql-10
sudo apt-get -y install timescaledb-postgresql-11
sudo apt-get -y install timescaledb-postgresql-12
fi

sudo timescaledb-tune --quiet --yes
Expand Down
20 changes: 12 additions & 8 deletions scripts/homestead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -534,16 +534,20 @@ def self.configure(config, settings)
end

settings['databases'].each do |db|
config.vm.provision 'shell' do |s|
s.name = 'Creating MySQL Database: ' + db
s.path = script_dir + '/create-mysql.sh'
s.args = [db]
if enabled_databases.include? 'mysql'
config.vm.provision 'shell' do |s|
s.name = 'Creating MySQL Database: ' + db
s.path = script_dir + '/create-mysql.sh'
s.args = [db]
end
end

config.vm.provision 'shell' do |s|
s.name = 'Creating Postgres Database: ' + db
s.path = script_dir + '/create-postgres.sh'
s.args = [db]
if enabled_databases.include? 'postgresql'
config.vm.provision 'shell' do |s|
s.name = 'Creating Postgres Database: ' + db
s.path = script_dir + '/create-postgres.sh'
s.args = [db]
end
end

if enabled_databases.include? 'mongodb'
Expand Down

0 comments on commit 3374c3a

Please sign in to comment.