diff options
author | Irina Gómez <irinagomez@us.es> | 2018-10-11 09:27:08 +0000 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2018-10-11 09:27:08 +0000 |
commit | 1be256fc1dbd5f29257fe0863d2811f1a646c9f7 (patch) | |
tree | e57f0f30aa8d887b23a57411a8e60fa8c481518a /installer/opengnsys_installer.sh | |
parent | b1360126e3730f01b3c1cb7ac0362e3679c28a67 (diff) |
#846 Se configura logrotate para que incluya todos los archivos de registro. Se separan los servicios del server y del repo en archivos independientes
Diffstat (limited to 'installer/opengnsys_installer.sh')
-rwxr-xr-x | installer/opengnsys_installer.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 230458ec..2166a1c7 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1485,9 +1485,12 @@ function openGnsysConfigure() echo "* * * * * root [ -x $INSTALL_TARGET/bin/deletepreimage ] && $INSTALL_TARGET/bin/deletepreimage" > /etc/cron.d/imagedelete echo "* * * * * root [ -x $INSTALL_TARGET/bin/ogagentqueue.cron ] && $INSTALL_TARGET/bin/ogagentqueue.cron" > /etc/cron.d/ogagentqueue - echoAndLog "${FUNCNAME}(): Creating logrotate configuration file." + echoAndLog "${FUNCNAME}(): Creating logrotate configuration files." sed -e "s/OPENGNSYSDIR/${INSTALL_TARGET//\//\\/}/g" \ - $WORKDIR/opengnsys/server/etc/logrotate.tmpl > /etc/logrotate.d/opengnsys + $WORKDIR/opengnsys/server/etc/logrotate.tmpl > /etc/logrotate.d/opengnsysServer + + sed -e "s/OPENGNSYSDIR/${INSTALL_TARGET//\//\\/}/g" \ + $WORKDIR/opengnsys/repoman/etc/logrotate.tmpl > /etc/logrotate.d/opengnsysRepo echoAndLog "${FUNCNAME}(): Creating OpenGnsys config files." for dev in ${DEVICE[*]}; do |