mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
xenstore-utils on debian wheezy does not have /usr/sbin/xenstore so these commands file. It does have xenstore-write and xenstore-rm so by adding a - this is fixed easily.
Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
parent
c54ce3cafb
commit
2e83baaca2
@ -74,7 +74,7 @@ xenstore_write_cached() {
|
||||
fi
|
||||
|
||||
# try to write and update cache if successfull
|
||||
if $XENSTORE write "$key" "$newval" ; then
|
||||
if $XENSTORE-write "$key" "$newval" ; then
|
||||
mkdir -p $(dirname "$cache")
|
||||
echo -n "$newval" > "$cache"
|
||||
XENSTORE_UPDATED=1
|
||||
@ -104,7 +104,7 @@ xenstore_rm_cached() {
|
||||
return 1
|
||||
fi
|
||||
# try to write and update cache if successfull
|
||||
if $XENSTORE rm "$key" ; then
|
||||
if $XENSTORE-rm "$key" ; then
|
||||
rm -rf "$cache"
|
||||
XENSTORE_UPDATED=1
|
||||
return 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user