Skip to content
Snippets Groups Projects
Select Git revision
  • 10f11e6b39293ae3737b65f06a8bcfdd3deb9a71
  • master default protected
  • 1.4.3-cesnet1
  • 1.4.3-cesnet0
4 results

init.sh

Blame
  • honza801@ADMIN.META's avatar
    Jan Krčmář authored and honza801@ADMIN.META committed
    10f11e6b
    History
    init.sh 317 B
    #!/bin/sh
    
    : ${DB_HOST:=localhost}
    : ${DB_NAME:=postgres}
    : ${DB_USER:=postgres}
    : ${DB_PASSWORD:=password}
    
    # execute database update
    cd /opt/toolbox/db
    echo "Updating database..."
    ./database_updater.sh --url jdbc:postgresql://$DB_HOST:5432/$DB_NAME --login $DB_USER --password $DB_PASSWORD
    echo "Database updated."