This commit is contained in:
Aleksander Cynarski 2017-04-13 22:25:46 +02:00
parent e33d0e8617
commit 559a8cac05

View File

@ -33,7 +33,7 @@ if [ -f $HOME/.ssh/gogs.pub ]; then
printf "Gogs deploy key is present\n" >&2 printf "Gogs deploy key is present\n" >&2
else else
mkdir -p $HOME/.ssh/ mkdir -p $HOME/.ssh/
ssh-keygen -f $HOME/.ssh/gogs -t rsa -N '' ssh-keygen -f $HOME/.ssh/gogs
chmod 400 $HOME/.ssh/gogs chmod 400 $HOME/.ssh/gogs
chmod 400 $HOME/.ssh/gogs.pub chmod 400 $HOME/.ssh/gogs.pub
fi fi