Blame tests/p_amanda/0-install_amanda.sh

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