Revisión ed9d9391
Añadido por Rafael J. García Perdigón hace casi 6 años
ubuntu/bionic/all/linex-ocsinventory-agent/debian/changelog | ||
---|---|---|
linex-ocsinventory-agent (1.1) linex; urgency=medium
|
||
|
||
* Avoid send lots of data (software...)
|
||
|
||
-- Rafael J. García Perdigón <rafael.garciap@juntaex.es> Fri, 07 Jun 2019 08:05:43 +0200
|
||
|
||
linex-ocsinventory-agent (1.0) linex; urgency=medium
|
||
|
||
* Initial Release.
|
ubuntu/bionic/all/linex-ocsinventory-agent/debian/control | ||
---|---|---|
|
||
Package: linex-ocsinventory-agent
|
||
Architecture: all
|
||
Depends: ocsinventory-agent
|
||
Pre-Depends: ocsinventory-agent
|
||
Description: Configuración de ocsinventory para linex-Xubuntu
|
||
Configuración de ocsinventory para linex-Xubuntu.
|
ubuntu/bionic/all/linex-ocsinventory-agent/debian/linex-ocsinventory-agent.links | ||
---|---|---|
/usr/share/linex-ocsinventory/ocsinventory-agent.cfg /etc/ocsinventory/ocsinventory-agent.cfg
|
||
/usr/share/linex-ocsinventory-agent/ocsinventory-agent.cfg /etc/ocsinventory/ocsinventory-agent.cfg
|
||
/usr/share/linex-ocsinventory-agent/ocsinventory-agent /etc/cron.daily/ocsinventory-agent
|
ubuntu/bionic/all/linex-ocsinventory-agent/debian/postinst | ||
---|---|---|
fi
|
||
|
||
[ -d /var/lib/ocsinventory-agent/ ] && rm -r /var/lib/ocsinventory-agent/
|
||
ocsinventory-agent
|
||
ocsinventory-agent --lazy --nosoftware
|
||
|
||
exit 0
|
ubuntu/bionic/all/linex-ocsinventory-agent/debian/postrm | ||
---|---|---|
|
||
|
||
if [ "$1" = remove ]; then
|
||
mv "$SHAREDIR/ocsinventory-agent-pre-linex-ocsinventory-agent" /etc/cron.daily/
|
||
|
||
remove_divert /etc/ocsinventory/ocsinventory-agent.cfg
|
||
remove_divert /etc/cron.daily/ocsinventory-agent
|
||
fi
|
||
|
||
[ -d /var/lib/ocsinventory-agent/ ] && rm -r /var/lib/ocsinventory-agent/
|
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"
|
||
|
||
exit 0
|
ubuntu/bionic/all/linex-ocsinventory-agent/usr/share/linex-ocsinventory-agent/ocsinventory-agent | ||
---|---|---|
#!/bin/sh
|
||
|
||
PROG=/usr/bin/ocsinventory-agent --lazy --nosoftware
|
||
#RUNDIR=/var/run
|
||
#ENABLED_FILE=$RUNDIR/ocsinventory-client-enabled
|
||
|
||
if [ ! -x "$PROG" ]; then
|
||
exit 0
|
||
fi
|
||
|
||
#if [ ! -f "$ENABLED_FILE" ]; then
|
||
# perl -e \
|
||
# 'print localtime()." => Service disabled: not running the cron job\n"'\
|
||
# >> /var/log/ocsinventory-client/ocsinv.log
|
||
# exit 0
|
||
#fi
|
||
|
||
$PROG > /dev/null 2>&1
|
||
|
Exportar a: Unified diff
Modified linex-ocs