Initial Windows agent repository
This commit is contained in:
commit
a0db0c2e5b
10589 changed files with 3844063 additions and 0 deletions
19
OGP64/etc/postinstall/zp_man-db-update-index.dash
Normal file
19
OGP64/etc/postinstall/zp_man-db-update-index.dash
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
if [ -f /var/cache/man/index.db ] ; then
|
||||
if [ -f /var/cache/man/.index-synchronously ] || [ "$1" = "background" ] ; then
|
||||
printf " ManDB index update starting...\n"
|
||||
tf=$(/usr/bin/mktemp -p /var/log mandb-index-XXXXXXXX.log)
|
||||
exec 3> $tf
|
||||
/usr/bin/mv --backup=simple $tf /var/log/mandb-index.log
|
||||
printf "ManDB update started: $(/usr/bin/date -Iseconds)\n" >&3
|
||||
/usr/bin/mandb <&- >&3 2>&1
|
||||
printf "ManDB update finished: $(/usr/bin/date -Iseconds)\n" >&3
|
||||
exec 3>&-
|
||||
printf " ... ManDB index update complete.\n"
|
||||
else
|
||||
printf " ManDB index update commencing in background...\n"
|
||||
env -i ProgramData=$(hexdump -n 32 -e '/8 "%02X" 3/8 "/%02X"' /dev/urandom) \
|
||||
/usr/bin/cygstart --hide /usr/bin/dash $0 background
|
||||
fi
|
||||
else
|
||||
printf " ManDB index not available.\n"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue