mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
make sure all statd state directories exist before we try to reference them
or else tar and friends will throw an error in the log (This used to be ctdb commit 96cbd2c0aa9a4641a42b3c33374675fa732ed1e5)
This commit is contained in:
parent
8be5bf1567
commit
c7df27e32d
@ -45,6 +45,7 @@ case "$1" in
|
||||
continue
|
||||
}
|
||||
IP=`echo $LINE | cut -f2 -d:`
|
||||
mkdir -p $CTDB_BASE/state/statd/ip/$IP
|
||||
/bin/rm -f $CTDB_BASE/state/statd/ip/$IP/$2
|
||||
done
|
||||
;;
|
||||
@ -58,6 +59,8 @@ case "$1" in
|
||||
}
|
||||
IP=`echo $LINE | cut -f2 -d:`
|
||||
|
||||
mkdir -p $CTDB_BASE/state/statd/ip/$IP
|
||||
|
||||
rm -f $CTDB_BASE/state/statd/ip/$IP.tar
|
||||
tar cfP $CTDB_BASE/state/statd/ip/$IP.tar $CTDB_BASE/state/statd/ip/$IP
|
||||
|
||||
@ -90,6 +93,8 @@ case "$1" in
|
||||
}
|
||||
IP=`echo $LINE | cut -f2 -d:`
|
||||
|
||||
mkdir -p $CTDB_BASE/state/statd/ip/$IP
|
||||
|
||||
rm -f $CTDB_BASE/state/statd/ip/$IP.rec
|
||||
ctdb pfetch ctdb.tdb statd-state:$IP $CTDB_BASE/state/statd/ip/$IP.rec 2>/dev/null
|
||||
[ "$?" = "0" ] || {
|
||||
|
Loading…
x
Reference in New Issue
Block a user