V962 Branch
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_amanda@4345 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
46efc5a64d
13
etc/xinetd.d/amanda
Normal file
13
etc/xinetd.d/amanda
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# amanda client
|
||||||
|
|
||||||
|
service amanda
|
||||||
|
{
|
||||||
|
disable = yes
|
||||||
|
socket_type = dgram
|
||||||
|
protocol = udp
|
||||||
|
wait = yes
|
||||||
|
user = amanda
|
||||||
|
group = backup
|
||||||
|
groups = yes
|
||||||
|
server = /usr/libexec/amandad
|
||||||
|
}
|
13
etc/xinetd.d/amandaidx
Normal file
13
etc/xinetd.d/amandaidx
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# amanda aerver
|
||||||
|
|
||||||
|
service amandaidx
|
||||||
|
{
|
||||||
|
disable = yes
|
||||||
|
socket_type = stream
|
||||||
|
protocol = tcp
|
||||||
|
wait = no
|
||||||
|
user = amanda
|
||||||
|
group = backup
|
||||||
|
groups = yes
|
||||||
|
server = /usr/libexec/amindexd
|
||||||
|
}
|
13
etc/xinetd.d/amidxtape
Normal file
13
etc/xinetd.d/amidxtape
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# amanda server
|
||||||
|
|
||||||
|
service amidxtape
|
||||||
|
{
|
||||||
|
disable = yes
|
||||||
|
socket_type = stream
|
||||||
|
protocol = tcp
|
||||||
|
wait = no
|
||||||
|
user = amanda
|
||||||
|
group = backup
|
||||||
|
groups = yes
|
||||||
|
server = /usr/libexec/amidxtaped
|
||||||
|
}
|
27
tmp/postinstall
Normal file
27
tmp/postinstall
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ! getent group backup 2>&1 >/dev/null; then
|
||||||
|
groupadd -g 25 backup
|
||||||
|
fi
|
||||||
|
if ! getent passwd amanda 2>&1 >/dev/null; then
|
||||||
|
useradd -u 46 -g backup -s /bin/false -m -d /var/amanda amanda
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >>/etc/services <<EOF
|
||||||
|
amandaidx 10082/tcp
|
||||||
|
amidxtape 10083/tcp
|
||||||
|
EOF
|
||||||
|
|
||||||
|
crontab -l -u amanda >/tmp/crontab.$$ 2>/dev/null
|
||||||
|
cat >>/tmp/crontab.$$ <<EOF
|
||||||
|
#0 16 * * 1-5 /usr/sbin/amcheck -m confname
|
||||||
|
#45 0 * * 2-6 /usr/sbin/amdump confname
|
||||||
|
EOF
|
||||||
|
crontab /tmp/crontab.$$ -u amanda 2>/dev/null
|
||||||
|
rm /tmp/crontab.$$
|
||||||
|
|
||||||
|
touch /etc/amandates
|
||||||
|
chown amanda:backup /etc/amandates
|
||||||
|
|
||||||
|
mkdir -p /var/amanda/gnutar-lists
|
||||||
|
chown -R amanda:backup /var/amanda
|
Loading…
Reference in New Issue
Block a user