Commit f4e01772 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed + one more check

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