Fix upgrade issue when copying files

This commit is contained in:
Taylor Helsper 2020-01-26 11:46:45 -06:00
parent ab55f92f21
commit 4e26ed66e2

View File

@ -31,7 +31,7 @@ VERSION=$(cat /opt/upgrade/out/rootfs_*/usr/share/mynode/version)
if [ $IS_X86 = 1 ]; then
rsync -r -K /opt/upgrade/out/rootfs_${DEVICE_TYPE}/* / 2>&1
else
cp -rf /opt/upgrade/out/rootfs_${DEVICE_TYPE}/* / > 2>&1
cp -rf /opt/upgrade/out/rootfs_${DEVICE_TYPE}/* / 2>&1
fi
sleep 1
sync