Install package in FreeBSD
This commit is contained in:
parent
55e0870936
commit
88eaf60cc5
1 changed files with 8 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
# Install missing packets
|
||||
DEB_PACKAGES_LIST="screen libnet-ldap-perl libxml-libxml-perl libgearman-client-perl libmailtools-perl libmail-sendmail-perl libdate-manip-perl"
|
||||
ARCH_PACKAGES_LIST="screen perl-io-socket-ssl perl-email-simple perl-email-mime perl-term-readkey perl-ldap perl-lwp-protocol-https"
|
||||
FBSD_PACKAGES_LIST="screen p5-IO-Socket-SSL p5-Email-Simple p5-Email-MIME p5-Term-ANSIColor p5-Term-ReadKey p5-LWP-Protocol-https"
|
||||
|
||||
if [ -f "/etc/debian_version" ]
|
||||
then
|
||||
|
@ -44,8 +45,13 @@ then
|
|||
elif [ -f "/etc/freebsd-update.conf" ]
|
||||
then
|
||||
|
||||
echo "TODO: FreeBSD"
|
||||
exit 1;
|
||||
for PK in $FBSD_PACKAGES_LIST
|
||||
do
|
||||
if ! pkg info "$PK" > /dev/null 2> /dev/null
|
||||
then
|
||||
pkg install "$PK"
|
||||
fi
|
||||
done
|
||||
|
||||
else
|
||||
|
||||
|
|
Reference in a new issue