Explorar el Código

Deployement key fix

Andrea Pollastri hace 5 años
padre
commit
72c5ab631f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      storage/app/scripts/hostadd.sh

+ 1 - 0
storage/app/scripts/hostadd.sh

@@ -361,6 +361,7 @@ fi
 #GIT INIT
 #GIT INIT
 if [ "$AUTO_INSTALL" = "git" ]; then
 if [ "$AUTO_INSTALL" = "git" ]; then
     sudo mkdir /home/$USER_NAME/git/
     sudo mkdir /home/$USER_NAME/git/
+    sudo cp /cipi/github.pub /home/$USER_NAME/git/deploy.pub
     sudo cp /cipi/deploy.sh /home/$USER_NAME/git/deploy.sh
     sudo cp /cipi/deploy.sh /home/$USER_NAME/git/deploy.sh
     sudo rpl -q "###CIPI-USER###" "$USER_NAME" /home/$USER_NAME/deploy.sh
     sudo rpl -q "###CIPI-USER###" "$USER_NAME" /home/$USER_NAME/deploy.sh
     sudo chown -R $USER_NAME:$USER_NAME /home/$USER_NAME/git/
     sudo chown -R $USER_NAME:$USER_NAME /home/$USER_NAME/git/