Break script into it's variants, due to how gpg works

This commit is contained in:
Firepup Sixfifty 2024-05-07 12:59:38 -05:00
parent 35f5563efd
commit 5f32451e24
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA
3 changed files with 16 additions and 0 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

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