Update install.sh
This commit is contained in:
parent
4ce6798552
commit
eee5cfd8ab
|
|
@ -8,16 +8,16 @@ cd "$(dirname "$0")"
|
||||||
. ./resources/colors.sh
|
. ./resources/colors.sh
|
||||||
. ./resources/environment.sh
|
. ./resources/environment.sh
|
||||||
|
|
||||||
# removes the cd img from the /etc/apt/sources.list file (not needed after base install)
|
|
||||||
#sed -i '/cdrom:/d' /etc/apt/sources.list
|
|
||||||
|
|
||||||
#Update to latest packages
|
#Update to latest packages
|
||||||
verbose "Update installed packages"
|
verbose "Update installed packages"
|
||||||
pkg upgrade
|
pkg upgrade
|
||||||
|
|
||||||
#Update the ports
|
#Update the ports
|
||||||
portsnap fetch extract
|
if [ -d "/usr/ports" ]; then
|
||||||
#portsnap fetch update
|
portsnap fetch update
|
||||||
|
else
|
||||||
|
portsnap fetch extract
|
||||||
|
fi
|
||||||
|
|
||||||
#PF - Packet Filter
|
#PF - Packet Filter
|
||||||
resources/pf.sh
|
resources/pf.sh
|
||||||
|
|
@ -40,9 +40,6 @@ resources/switch.sh
|
||||||
#Postgres
|
#Postgres
|
||||||
resources/postgres.sh
|
resources/postgres.sh
|
||||||
|
|
||||||
#set the ip address
|
|
||||||
server_address=$(hostname -I)
|
|
||||||
|
|
||||||
#restart services
|
#restart services
|
||||||
service php-fpm restart
|
service php-fpm restart
|
||||||
service nginx restart
|
service nginx restart
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue