From 0c3f4e44fe75fe1f503d49e41e01c95c36a0ae7a Mon Sep 17 00:00:00 2001 From: cubic Date: Tue, 6 Jun 2023 11:46:43 +0800 Subject: [PATCH] fix(init script): change pwd --- misc/initailize_container.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/misc/initailize_container.sh b/misc/initailize_container.sh index fb407c9..d49e411 100755 --- a/misc/initailize_container.sh +++ b/misc/initailize_container.sh @@ -5,14 +5,14 @@ fi echo '> Start post initialization...' -cp ../config.template.yaml ../env/config.yaml -cp ../env.template.yaml ../env/env.yaml -chmod 0777 ../env/config.yaml ../env/env.yaml ./env.yaml ./config.yaml -chmod -R 0777 ../git-storage +cp ./config.template.yaml ./env/config.yaml +cp ./env.template.yaml ./env/env.yaml +chmod 0777 ./env/config.yaml ./env/env.yaml ./env.yaml ./config.yaml +chmod -R 0777 ./git-storage -chown -R git:git ../application/logs -chown -R git:git ../file-storage -chown -R git:git ../misc +chown -R git:git ./application/logs +chown -R git:git ./file-storage +chown -R git:git ./misc TARGET_CRONJOB=`crontab -u git -l 2>/dev/null | grep 'codefever_schedule.sh' | wc -l` if [ $TARGET_CRONJOB -eq 0 ]; then @@ -22,8 +22,8 @@ if [ $TARGET_CRONJOB -eq 0 ]; then rm -f /tmp/cronjob.temp fi -echo 'Generateing public key for ssh: (Just Press Enter Key!)' -sudo -u git ssh-keygen -f /home/git/.ssh/id_rsa +echo 'Generateing public key for ssh ...' +echo -n "y" | sudo -u git ssh-keygen -N "" -f /home/git/.ssh/id_rsa service sshd restart # start services