3 echo "Adding bacula system group... "
6 echo "Adding bacula system user... "
7 useradd -c "Bacula Daemon" -d / -g bacula -s /bin/false bacula
9 echo "Locking Bacula User Account..."
10 passwd -l bacula &>/dev/null
20 ==> Please don't forget to config your PostgreSQL database for the program.
22 ==> 1. Run /etc/bacula/scripts/grant_postgresql_privileges. This script creates database user
23 ==> 'bacula' with unrestricted rights to the bacula's database. The
24 ==> script creates user without any password. You may want to edit
25 ==> the script before run it.
26 ==> 2. Run /etc/bacula/scripts/create_postgresql_database to create the Database
28 ==> 3. Run /etc/bacula/scripts/make_postgresql_tables to create tables used by bacula.
30 ==> The archive directory is: /var/cache/bacula
32 ==> Bacula's offical website : http://www.bacula.org
38 echo "removing bacula's system users... "
45 [ "$(type -t "$op")" = "function" ] && $op "$@"