__lxc_container: do not call rm recusivly for a file
This commit is contained in:
parent
5d6f90555b
commit
e8aede1e91
1 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ LXC
|
||||||
# remove empty tempfile if it was created
|
# remove empty tempfile if it was created
|
||||||
if [ -f "$__object/parameter/no-default-config" ]; then
|
if [ -f "$__object/parameter/no-default-config" ]; then
|
||||||
cat <<RM
|
cat <<RM
|
||||||
rm -rf "\$empty_conf"
|
rm -f "\$empty_conf"
|
||||||
RM
|
RM
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
@ -231,7 +231,7 @@ DONE
|
||||||
|
|
||||||
# apply all changes
|
# apply all changes
|
||||||
cat <<DONE
|
cat <<DONE
|
||||||
rm -rf "$container_config"
|
rm -f "$container_config"
|
||||||
mv "\$tmpconfig" "$container_config"
|
mv "\$tmpconfig" "$container_config"
|
||||||
DONE
|
DONE
|
||||||
echo "config" >> "$__messages_out"
|
echo "config" >> "$__messages_out"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue