Compare commits
4 commits
AAAAAAAAAA
...
master
Author | SHA1 | Date | |
---|---|---|---|
410641563e | |||
8c6e71ded0 | |||
8193995692 | |||
148d7b28b3 |
4 changed files with 8 additions and 21 deletions
|
@ -1,3 +1,3 @@
|
|||
# Forejo Signing Setup Script
|
||||
|
||||
This project is under development, and only the `ssh` variant of the script is currently functional.
|
||||
This project is under development, and only the `ssh` variant of the script is currently functional.
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
echo '[INFO] Make sure to run this script as a root user!'
|
||||
echo '[INFO] Now creating a gpg key, please fill out the inforemation with what you want for forejo to use.'
|
||||
echo '$ gpg --default-new-key-algo rsa4096 --gen-key'
|
||||
gpg --default-new-key-algo rsa4096 --gen-key
|
||||
echo '[INFO] Listing keys'
|
||||
echo '$ gpg --list-secret-keys --keyid-format=long'
|
||||
gpg --list-secret-keys --keyid-format=long
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
echo '[INFO] Make sure to run this script as a used with sudo!'
|
||||
echo '[INFO] Now creating a gpg key, please fill out the inforemation with what you want for forejo to use.'
|
||||
echo '$ gpg --default-new-key-algo rsa4096 --gen-key'
|
||||
gpg --default-new-key-algo rsa4096 --gen-key
|
||||
echo '[INFO] Listing keys'
|
||||
echo '$ gpg --list-secret-keys --keyid-format=long'
|
||||
gpg --list-secret-keys --keyid-format=long
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
#!/bin/bash
|
||||
echo '[NOTICE] Make sure to run this script as the user that forejo runs as, via ssh or with manual ownership grants to your current tty!'
|
||||
#echo '[NOTICE] This script modifes your default git config! If forejo runs as your user, then this will mess up your default git config!'
|
||||
echo '[NOTICE] If you\'re running this script over sudo or su into the other account this WILL FAIL, gpg will not tolerate it!'
|
||||
echo '[NOTICE] While it is not recommended by this script, you can set up gpg in a non-standard directory.'
|
||||
echo '[NOTICE] If you do so, this script will disable git modifications, regardless of your selection.'
|
||||
echo '[NOTICE] Otherwise, this script will modify the global git configuation for the user it runs as, and use the default GPG home.'
|
||||
read -p '"Real Name" for gpg and git [Testing]: ' rname
|
||||
rname=${rname:-Testing}
|
||||
read -p 'Email [test@test.test]: ' email
|
||||
|
@ -44,7 +47,7 @@ else
|
|||
echo "SIGNING_NAME = $rname"
|
||||
echo "SIGNING_EMAIL = $email"
|
||||
echo '[INFO] This script does recommend that you use the default git setup with GPG keys, however.'
|
||||
[[ $overgpg == n || $ovrgpg == N ]] && echo '[NOTICE] I notice you\'re trying to use a non-standard gpg directory'
|
||||
[[ $overgpg == n || $ovrgpg == N ]] && echo '[NOTICE] I have no idea how to make forgejo read from a non-standard gpg dirctory'
|
||||
[[ $overgpg == n || $ovrgpg == N ]] && echo '[NOTICE] So you\'re on your own from here. I hope you know what you\'re doing.'
|
||||
[[ $ovrgpg == n || $ovrgpg == N ]] && echo '[NOTICE] I notice you\'re trying to use a non-standard gpg directory'
|
||||
[[ $ovrgpg == n || $ovrgpg == N ]] && echo '[NOTICE] I have no idea how to make forgejo read from a non-standard gpg dirctory'
|
||||
[[ $ovrgpg == n || $ovrgpg == N ]] && echo '[NOTICE] So you\'re on your own from here. I hope you know what you\'re doing.'
|
||||
fi
|
Loading…
Reference in a new issue