You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_amanda/0-install_amanda.sh

24 lines
527 B

#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
# Christoph Galuschka <tigalch@tigalch.org>
t_Log "$0 - installing amanda system"
if (t_GetPkgRel basesystem | grep -q el5)
then
t_Log "This is a C5 system. Skipping."
t_CheckExitStatus 0
exit $PASS
fi
if (t_GetPkgRel basesystem | grep -q el9)
then
t_Log "This is a C9 system. Amanda not present. Skipping."
t_CheckExitStatus 0
exit $PASS
fi
t_InstallPackage amanda amanda-server amanda-client
id -u amandabackup &>/dev/null || useradd amandabackup