Compare commits

..

No commits in common. "8c6e71ded0c7d5bdcceead13ebd751fc92fe37de" and "1a0cdd21e89f6db9f06b02ab73d595d2c9653220" have entirely different histories.

3 changed files with 17 additions and 4 deletions

8
fsss-root.sh Normal file
View file

@ -0,0 +1,8 @@
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

View file

@ -1,9 +1,6 @@
#!/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] 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.'
#echo '[NOTICE] This script modifes your default git config! If forejo runs as your user, then this will mess up your default git config!'
read -p '"Real Name" for gpg and git [Testing]: ' rname
rname=${rname:-Testing}
read -p 'Email [test@test.test]: ' email

8
fsss-sudo.sh Normal file
View file

@ -0,0 +1,8 @@
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