formatting and dns changes
[automated-distro-installer] / fai-redep
index fabada02ee6826da23607d48fe2f1bed5ffc98a4..7dc0d097496e679750ad4437ee5a2acdce5026de 100755 (executable)
--- a/fai-redep
+++ b/fai-redep
@@ -38,10 +38,10 @@ host=${1:-faiserver}
 # use it, so look it up just to avoid the warning spam.
 faiserver_host=$(chost $host) || faiserver_host=$host
 
-rsync -rl --delete --relative --exclude /fai/config/basefiles/ fai/config root@$faiserver_host:/srv
+rsync -rlp --delete --relative --exclude /fai/config/basefiles/ fai/config root@$faiserver_host:/srv
 
 
-scp -q ~/.ssh/id_rsa.pub \
+scp -q ~/.ssh/home.pub \
     root@$faiserver_host:/srv/fai/config/files/root/.ssh/authorized_keys/GRUB_PC
 # todo: automatically disable faiserver after a period so
 # these files are not exposed.