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:
parent
93d600c0a4
commit
7faa48ae04
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user