]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/install_conf_file.in
kes Define a machine dependent ioctl request type for use with
[bacula/bacula] / bacula / src / qt-console / install_conf_file.in
1 #!/bin/sh
2
3 sbindir=@sbindir@
4 sysconfdir=@sysconfdir@
5 INSTALL_CONFIG="@INSTALL@ -m 640"
6
7 srcconf=bat.conf
8 if  test -f ${DESTDIR}${sysconfdir}/${srcconf}; then
9   destconf=${srcconf}.new
10   echo "  ==> Found existing $srcconf, installing new conf file as ${destconf}"
11 else
12   destconf=${srcconf}
13 fi
14 echo "${INSTALL_CONFIG} ${srcconf} ${DESTDIR}${sysconfdir}/${destconf}"
15 ${INSTALL_CONFIG} ${srcconf} ${DESTDIR}${sysconfdir}/${destconf}