Handle default path for bash in FreeBSD.

This commit is contained in:
Retro_Guy 2024-12-02 02:20:27 -07:00
parent 616cc09975
commit cef6f6f4a1
3 changed files with 14 additions and 0 deletions

View File

@ -87,6 +87,7 @@ cp -a spoolnews $webroot
cp -a rslight/* $configpath
cp rslight/fortunes.conf.bsd $configpath/fortunes.conf
cp rslight/phpmailer.inc.php.bsd $configpath/phpmailer.inc.php
cp rslight/scripts/create_gpg_keys.sh.bsd $configpath/scripts/create_gpg_keys.sh
echo "done"
echo
echo -n "Setting permissions..."

View File

@ -92,6 +92,7 @@ cp rslight/*.conf $configpath/upgrade
cp rslight/*.dist $configpath/upgrade
cp rslight/fortunes.conf.bsd $configpath/upgrade/fortunes.conf
cp rslight/phpmailer.inc.php.bsd $configpath/upgrades/phpmailer.inc.php
cp rslight/scripts/create_gpg_keys.sh.bsd $configpath/scripts/create_gpg_keys.sh
echo "done"
echo
echo -n "Setting permissions..."

View File

@ -0,0 +1,12 @@
#!/usr/local/bin/bash
gnupghome="$1"
server_pub_key="$2"
fingerprint="$3"
domain="$4"
export GNUPGHOME=$gnupghome
gpg --batch --passphrase '' --quick-gen-key $domain default default 0
gpg --export -a $domain > $server_pub_key
gpg --fingerprint $domain | sed '2!d' > $fingerprint