Commit f4e01772 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed + one more check

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