Commit f4e01772 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed + one more check

parent e20ab522
...@@ -12,8 +12,10 @@ case "$1" in ...@@ -12,8 +12,10 @@ case "$1" in
stop) stop)
echo -n "Stopping $DESC: " echo -n "Stopping $DESC: "
echo "$NAME." echo "$NAME."
if [ -f /tmp/overlay ]; then if [ -f /tmp/overlay_sync ]; then
rsync -av /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/ if [ -d /tmp/rootfs.ro ]; then
rsync -av /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
fi
fi fi
;; ;;
restart) restart)
...@@ -29,8 +31,10 @@ case "$1" in ...@@ -29,8 +31,10 @@ case "$1" in
fi fi
;; ;;
sync) sync)
if [ -f /tmp/overlay ]; then if [ -f /tmp/overlay_sync ]; then
rsync -av /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/ if [ -d /tmp/rootfs.ro ]; then
rsync -av /tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
fi
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