Skip to content

Instantly share code, notes, and snippets.

@thraizz
Last active November 29, 2018 12:15
Show Gist options
  • Save thraizz/3742bfc63b06031b09a08f68b6e9ae5c to your computer and use it in GitHub Desktop.
Save thraizz/3742bfc63b06031b09a08f68b6e9ae5c to your computer and use it in GitHub Desktop.
#!/bin/bash
DIST=CentOS_7
RELEASE=experimental/nightly/
URL=http://download.bareos.org/bareos/$RELEASE/$DIST
wget -O /etc/yum.repos.d/bareos.repo $URL/bareos.repo
yum -y install bareos bareos-database-postgresql bareos-webui bareos-storage-droplet postgresq-server
su postgres -c /usr/lib/bareos/scripts/create_bareos_database
su postgres -c /usr/lib/bareos/scripts/make_bareos_tables
su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment