If git is disabled, then show the keys the user will need to set directly

This commit is contained in:
Firepup Sixfifty 2024-05-08 22:29:27 -05:00
parent 5bbca80a4a
commit ed6164dfbf
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -34,4 +34,11 @@ if [[ "${ovrgit}" == "y" || "${ovrgit}" == "Y" ]] ; then
git config --global user.email "$email"
else
echo '[INFO] Not Reconfiguring git!'
echo '[INFO] If you want forgejo to use the new gpg key, you\'ll need to set a few keys in `app.ini`.'
echo '[INFO] The keys you\'ll need to set are:'
echo '[repository.signing]'
echo "SINGING_KEY = $key_id"
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.'
fi