Revisión 2db5839b
Añadido por Ismael Campos Suárez hace más de 5 años
ubuntu/bionic/all/linex-ocsinventory-agent/debian/changelog | ||
---|---|---|
linex-ocsinventory-agent (1.2) linex; urgency=medium
|
||
|
||
* Bug detected in /etc/cron.daily/ocsinventory-agent script and preinst
|
||
|
||
-- Ismael Campos <ismael.campos@juntaex.es> Mon, 16 Dec 2019 09:54:46 +0100
|
||
|
||
linex-ocsinventory-agent (1.1) linex; urgency=medium
|
||
|
||
* Avoid send lots of data (software...)
|
ubuntu/bionic/all/linex-ocsinventory-agent/debian/postinst | ||
---|---|---|
|
||
set -e
|
||
|
||
SHAREDIR="/usr/share/linex-ocsinventory-agent"
|
||
|
||
tag=`cat /etc/escuela2.0 |grep -i hardware|cut -d "=" -f2`
|
||
|
||
if ! [ -z "$tag" ] ;then
|
||
... | ... | |
|
||
fi
|
||
|
||
mv /etc/cron.daily/ocsinventory-agent-pre-linex-ocsinventory-agent "$SHAREDIR"
|
||
|
||
[ -d /var/lib/ocsinventory-agent/ ] && rm -r /var/lib/ocsinventory-agent/
|
||
ocsinventory-agent --lazy --nosoftware
|
||
|
ubuntu/bionic/all/linex-ocsinventory-agent/debian/preinst | ||
---|---|---|
|
||
divert /etc/ocsinventory/ocsinventory-agent.cfg
|
||
divert /etc/cron.daily/ocsinventory-agent
|
||
mv /etc/cron.daily/ocsinventory-agent-pre-linex-ocsinventory-agent "$SHAREDIR"
|
||
#La siguiente línea la muevo a postinst
|
||
#mv /etc/cron.daily/ocsinventory-agent-pre-linex-ocsinventory-agent "$SHAREDIR"
|
||
|
||
exit 0
|
ubuntu/bionic/all/linex-ocsinventory-agent/usr/share/linex-ocsinventory-agent/ocsinventory-agent | ||
---|---|---|
#!/bin/sh
|
||
|
||
PROG=/usr/bin/ocsinventory-agent --lazy --nosoftware
|
||
PROG="/usr/bin/ocsinventory-agent"
|
||
OPT="--lazy --nosoftware"
|
||
#RUNDIR=/var/run
|
||
#ENABLED_FILE=$RUNDIR/ocsinventory-client-enabled
|
||
|
||
... | ... | |
# exit 0
|
||
#fi
|
||
|
||
$PROG > /dev/null 2>&1
|
||
$PROG $OPT> /dev/null 2>&1
|
||
|
Exportar a: Unified diff
Bug detectado en linex-ocsinventory-agent/usr/share/linex-ocsinventory-agent/ocsinventory-agent
Bug en linex-ocsinventory-agent/debian/preinst