summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_update.sh
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-11-23 14:41:33 +0100
committerRamón M. Gómez <ramongomez@us.es>2018-11-23 14:41:33 +0100
commit59d66700b6878cc57b28f12c21bbb43a38f0871f (patch)
treeb1c3d3f2e83b2c1122d8832ead5af024bfe0f590 /installer/opengnsys_update.sh
parent4d0694b55c9c4bdafe113b1e6fa11204ea0886d3 (diff)
#846: Remove appropiate logrotate files when uninstalling or updating.
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-xinstaller/opengnsys_update.sh3
1 files changed, 2 insertions, 1 deletions
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" \