hide error when migrating /var/run to /run

The script tries to copy non-existing files. We simply hide the error

http://bugs.alpinelinux.org/issues/3160
This fixes #451.
This commit is contained in:
Natanael Copa 2016-08-17 17:18:21 +02:00 committed by William Hubbs
parent 93d600c0a4
commit 7faa48ae04

View File

@ -113,8 +113,10 @@ migrate_to_run()
rm $src
elif [ ! -L $src -a -d $src ]; then
ebegin "Migrating $src to $dst"
if ! rmdir $src 2>/dev/null; then
cp -a $src/* $dst/
rm -rf $src
fi
eend $?
fi
# If $src doesn't exist at all, just run this