repo fix
This commit is contained in:
parent
462f6275d8
commit
6f4641403a
4
autoinit
4
autoinit
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
rname=$(date +%s | sha256sum | base64 | head -c 32)
|
||||||
|
|
||||||
if [ -z $GOGS_ROOT_URL ]
|
if [ -z $GOGS_ROOT_URL ]
|
||||||
then
|
then
|
||||||
printf "Need to set GOGS_ROOT_URL environment variable\n" >&2
|
printf "Need to set GOGS_ROOT_URL environment variable\n" >&2
|
||||||
@ -50,7 +52,7 @@ if [ -f $HOME/.ssh/$GOGS_REPO-sended ]; then
|
|||||||
printf "Key sended\n" >&2
|
printf "Key sended\n" >&2
|
||||||
else
|
else
|
||||||
printf "Prepare to send key\n" >&2
|
printf "Prepare to send key\n" >&2
|
||||||
title=$(hostname)@$(whoami)
|
title=$rname@$(hostname)
|
||||||
printf "title $title\n" >&2
|
printf "title $title\n" >&2
|
||||||
deploykey=$(cat $HOME/.ssh/gogs.pub)
|
deploykey=$(cat $HOME/.ssh/gogs.pub)
|
||||||
body=$(cat <<-END
|
body=$(cat <<-END
|
||||||
|
Loading…
Reference in New Issue
Block a user