Commit f4e01772 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed + one more check

parent e20ab522
......@@ -12,8 +12,10 @@ case "$1" in
stop)
echo -n "Stopping $DESC: "
echo "$NAME."
if [ -f /tmp/overlay ]; then
rsync -av /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
if [ -f /tmp/overlay_sync ]; then
if [ -d /tmp/rootfs.ro ]; then
rsync -av /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
fi
fi
;;
restart)
......@@ -29,8 +31,10 @@ case "$1" in
fi
;;
sync)
if [ -f /tmp/overlay ]; then
rsync -av /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
if [ -f /tmp/overlay_sync ]; then
if [ -d /tmp/rootfs.ro ]; then
rsync -av /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
fi
fi
;;
*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment