34 lines
954 B
Makefile
34 lines
954 B
Makefile
all:
|
|
echo OK
|
|
|
|
install-mariadb-server:
|
|
dnf check-update
|
|
dnf install -y mariadb-server
|
|
systemctl enable mariadb
|
|
systemctl start mariadb
|
|
|
|
install-bacula:
|
|
dnf check-update
|
|
dnf install -y bacula-director bacula-storage bacula-console bacula-client
|
|
alternatives --set libbaccats.so /usr/lib64/libbaccats-mysql.so
|
|
mysql -uroot < create-bacula-database.sql
|
|
mysql -uroot <create-dump-user.sql
|
|
/usr/libexec/bacula/make_mysql_tables
|
|
|
|
install-bacula-mysql-scripts:
|
|
cp -vf pre-mysql.sh /etc/bacula/pre-mysql.sh
|
|
cp -vf post-mysql.sh /etc/bacula/post-mysql.sh
|
|
chmod +x /etc/bacula/pre-mysql.sh
|
|
chmod +x /etc/bacula/post-mysql.sh
|
|
|
|
install-director-config:
|
|
cp -vf bacula-dir.conf /etc/bacula/bacula-dir.conf
|
|
|
|
enable-bacula-servies:
|
|
systemctl enable bacula-dir.service
|
|
systemctl enable bacula-fd.service
|
|
systemctl enable bacula-sd.service
|
|
systemctl restart bacula-dir.service
|
|
systemctl restart bacula-fd.service
|
|
systemctl restart bacula-sd.service
|