Explorar el Código

legacy ssh key file

clementinecomputing hace 5 años
padre
commit
f397656025
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      aux/DIU-deploy-site-specific

+ 4 - 0
aux/DIU-deploy-site-specific

@@ -52,6 +52,10 @@ if [[ -e "$SSH_FILE" ]] ; then
   chown bus:bus /home/bus/.ssh/id_rsa_bus
   chmod a-rwx /home/bus/.ssh/id_rsa_bus
   chmod u+r /home/bus/.ssh/id_rsa_bus
+  cp -L -f "$SSH_FILE" /etc/ppp/id_rsa_bus
+  chown root:root /etc/ppp/id_rsa_bus
+  chmod a-rwx /etc/ppp/id_rsa_bus
+  chmod u+r /etc/ppp/id_rsa_bus
 else
   echo "# FILE NOT FOUND (SSH id_rsa): $SSH_FILE"
 fi