mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-19 13:17:39 +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()
|
check_ldconfig()
|
||||||
{
|
{
|
||||||
local state=/var/log/ytools-ldconf.state
|
local state=/var/log/ytools-ldconf.state
|
||||||
if [ -f $state ]; then
|
[ -f $state ] && create_ldconfig_state | diff $state - >/dev/null 2>&1 && return
|
||||||
if ! create_ldconfig_state | diff $state -; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
echo -n "running ldconfig ... "
|
echo -n "running ldconfig ... "
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
create_ldconfig_state > $state
|
create_ldconfig_state > $state
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue