raid10 replace docs, various fixes
[automated-distro-installer] / fai / config / scripts / GRUB_PC / 11-iank
index 60403dd58e907d3b698f4bae58f1b64337ad7a9e..c6948e7c8ae35228545ea9a1441119905ad77a18 100755 (executable)
@@ -70,6 +70,8 @@ fi
 chown -R 1000:1000 /home/iank/.ssh
 chmod -R u=Xrw,og= /home/iank/.ssh
 rm -rf /root/.ssh
+# remove broken symlinks or the following cp will fail
+find /home/iank/.ssh -xtype l -exec rm '{}' \;
 cp -rL /home/iank/.ssh /root
 chown -R root:root /root/.ssh
 chmod 700 /root/.ssh