Add notices

This commit is contained in:
Firepup Sixfifty 2024-05-07 19:20:15 -05:00
parent 3a3457cc4c
commit ccad60092b
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -1,9 +1,10 @@
echo '[INFO] Make sure to run this script as the user that forejo runs as, over ssh, or with manual ownership grants to your current tty!' 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!'
rname="NUL" rname="NUL"
read -p '"Real Name" for gpg and git: ' rname read -p '"Real Name" for gpg and git: ' rname
email="NUL" email="NUL"
read -p 'Email: ' email read -p 'Email: ' email
echo '[INFO] Now creating a gpg key, please fill out the inforemation with what you want for forejo to use.' echo '[INFO] Now creating a gpg key using the real name and email provided'
echo "$ gpg --default-new-key-algo rsa4096 --quick-gen-key --batch --passphrase '' \"$rname <$email>\"" echo "$ gpg --default-new-key-algo rsa4096 --quick-gen-key --batch --passphrase '' \"$rname <$email>\""
gpg --default-new-key-algo rsa4096 --quick-gen-key --batch --passphrase '' "$rname <$email>" gpg --default-new-key-algo rsa4096 --quick-gen-key --batch --passphrase '' "$rname <$email>"
echo '[INFO] Listing keys' echo '[INFO] Listing keys'