diff --git a/autoinit b/autoinit index 924ce47..472ed7b 100755 --- a/autoinit +++ b/autoinit @@ -1,5 +1,7 @@ #!/bin/bash +rname=$(date +%s | sha256sum | base64 | head -c 32) + if [ -z $GOGS_ROOT_URL ] then 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 else printf "Prepare to send key\n" >&2 - title=$(hostname)@$(whoami) + title=$rname@$(hostname) printf "title $title\n" >&2 deploykey=$(cat $HOME/.ssh/gogs.pub) body=$(cat <<-END