Handle default path for bash in FreeBSD.
This commit is contained in:
parent
616cc09975
commit
cef6f6f4a1
|
@ -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..."
|
||||
|
|
|
@ -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..."
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue