diff options
author | ramon <ramongomez@us.es> | 2017-10-26 11:30:11 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-10-26 11:30:11 +0000 |
commit | 06459061d3cff16b3ad4843e388d91c11d87b7d0 (patch) | |
tree | 5c90386d9c110bb3961c1cfbf2b22047263f37c5 /installer/opengnsys_update.sh | |
parent | 8182ab1483c8edea495e8877b8ae64fdb5323a76 (diff) |
#708: Nuevo script de ejecución cronológica para enviar a los OGAgent las operaciones pendientes; preparar su instalación en instalación y actualización.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5485 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-x | installer/opengnsys_update.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 5edee421..262dedfe 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -591,9 +591,9 @@ function updateWebFiles() done cp -a $COMPATDIR/imagenes.device.php $COMPATDIR/imagenes.device4.php - # Fichero de logs del agente OGAgent. - touch $INSTALL_TARGET/log/ogagent.log - chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $INSTALL_TARGET/log/ogagent.log + # Fichero de log de la API REST. + touch $INSTALL_TARGET/log/{ogagent,rest,remotepc}.log + chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $INSTALL_TARGET/{log/ogagent,rest,remotepc}.log echoAndLog "${FUNCNAME}(): Web files updated successfully." } @@ -824,6 +824,7 @@ function updateServerFiles() [ ! -f /etc/cron.d/torrentcreator ] && echo "* * * * * root [ -x $INSTALL_TARGET/bin/torrent-creator ] && $INSTALL_TARGET/bin/torrent-creator" > /etc/cron.d/torrentcreator [ ! -f /etc/cron.d/torrenttracker ] && echo "5 * * * * root [ -x $INSTALL_TARGET/bin/torrent-tracker ] && $INSTALL_TARGET/bin/torrent-tracker" > /etc/cron.d/torrenttracker [ ! -f /etc/cron.d/imagedelete ] && echo "* * * * * root [ -x $INSTALL_TARGET/bin/deletepreimage ] && $INSTALL_TARGET/bin/deletepreimage" > /etc/cron.d/imagedelete + [ ! -f /etc/cron.d/ogagentqueue ] && echo "* * * * * root [ -x $INSTALL_TARGET/bin/ogagentqueue.cron ] && $INSTALL_TARGET/bin/ogagentqueue.cron" > /etc/cron.d/ogagentqueue echoAndLog "${FUNCNAME}(): server files updated successfully." } |