From 59d66700b6878cc57b28f12c21bbb43a38f0871f Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Fri, 23 Nov 2018 14:41:33 +0100 Subject: #846: Remove appropiate logrotate files when uninstalling or updating. --- installer/opengnsys_update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'installer/opengnsys_update.sh') diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index c43dc8fc..a522434a 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -1043,8 +1043,9 @@ function checkFiles() echoAndLog "${FUNCNAME}(): Deleting unused files" rm -f /tmp/dstate fi - # Crear ficheros de logrotate. + # Crear nuevos ficheros de logrotate y borrar el fichero antiguo. if [ -d $LOGROTATEDIR ]; then + rm -f $LOGROTATEDIR/opengnsys if [ ! -f $LOGROTATEDIR/opengnsysServer ]; then echoAndLog "${FUNCNAME}(): Creating logrotate configuration file for server" sed -e "s/OPENGNSYSDIR/${INSTALL_TARGET//\//\\/}/g" \ -- cgit v1.2.3-18-g5258