mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
jannet: Fix state check
This commit is contained in:
parent
21acfd402d
commit
19ea308ca3
1 changed files with 1 additions and 5 deletions
|
|
@ -62,11 +62,7 @@ create_ldconfig_state()
|
|||
check_ldconfig()
|
||||
{
|
||||
local state=/var/log/ytools-ldconf.state
|
||||
if [ -f $state ]; then
|
||||
if ! create_ldconfig_state | diff $state -; then
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
[ -f $state ] && create_ldconfig_state | diff $state - >/dev/null 2>&1 && return
|
||||
echo -n "running ldconfig ... "
|
||||
/sbin/ldconfig
|
||||
create_ldconfig_state > $state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue