#648: Actualizador ejecuta al final el script {{{checkperms}}} para asignar correctamente permisos y deja de copiar ficheros que ya no existen.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4346 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
455906f232
commit
5b95ab6031
|
@ -604,7 +604,6 @@ function updateServerFiles()
|
|||
admin/Sources/Services/ogAdmRepoAux \
|
||||
server/tftpboot \
|
||||
installer/opengnsys_uninstall.sh \
|
||||
installer/install_ticket_wolunicast.sh \
|
||||
doc )
|
||||
local TARGETS=( bin \
|
||||
bin \
|
||||
|
@ -612,7 +611,6 @@ function updateServerFiles()
|
|||
sbin/ogAdmRepoAux \
|
||||
tftpboot \
|
||||
lib/opengnsys_uninstall.sh \
|
||||
lib/install_ticket_wolunicast.sh \
|
||||
doc )
|
||||
|
||||
if [ ${#SOURCES[@]} != ${#TARGETS[@]} ]; then
|
||||
|
@ -824,6 +822,22 @@ function updateClient()
|
|||
fi
|
||||
}
|
||||
|
||||
# Comprobar permisos y ficheros.
|
||||
function checkFiles()
|
||||
{
|
||||
# Comprobar permisos adecuados.
|
||||
if [ -x $INSTALL_TARGET/bin/checkperms ]; then
|
||||
echoAndLog "${FUNCNAME}(): Checking permissions."
|
||||
OPENGNSYS_DIR="$INSTALL_TARGET" OPENGNSYS_USER="$OPENGNSYS_CLIENTUSER" APACHE_USER="$APACHE_RUN_USER" APACHE_GROUP="$APACHE_RUN_GROUP" $INSTALL_TARGET/bin/checkperms
|
||||
fi
|
||||
|
||||
# Eliminamos el fichero de estado del tracker porque es incompatible entre los distintos paquetes
|
||||
if [ -f /tmp/dstate ]; then
|
||||
echoAndLog "${FUNCNAME}(): Delete unused files."
|
||||
rm -f /tmp/dstate
|
||||
fi
|
||||
}
|
||||
|
||||
# Resumen de actualización.
|
||||
function updateSummary()
|
||||
{
|
||||
|
@ -964,10 +978,8 @@ if [ $? -ne 0 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Eliminamos el fichero de estado del tracker porque es incompatible entre los distintos paquetes
|
||||
if [ -f /tmp/dstate ]; then
|
||||
rm -f /tmp/dstate
|
||||
fi
|
||||
# Comprobar permisos y ficheros.
|
||||
checkFiles
|
||||
|
||||
# Mostrar resumen de actualización.
|
||||
updateSummary
|
||||
|
|
Loading…
Reference in New Issue