ccf 3 years ago
parent
commit
2202ab8b2e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      shell/container-up.sh

+ 4 - 3
shell/container-up.sh

@@ -22,9 +22,10 @@ ln -f -s /code/config/php7/web/pool.test.conf /etc/php/7.2/fpm/pool.d/www.conf
 # sync cron
 cp /data/docker/config/crontab/container-code-up /etc/crontab
 
-if [[ ! -d "~/.ssh" ]]; then
-    mkdir ~/.ssh
-fi
+cp -Rf /data/docker/config/id_rsa ~/.ssh/
+cp -Rf /data/docker/config/id_rsa.pub ~/.ssh/
+chmod 700 ~/.ssh/id_rsa
+chmod 700 ~/.ssh/id_rsa.pub
 
 # 更新代码
 chown -R www-data:www-data /code