Package update and upgrade done before installing / updating

This commit is contained in:
Yorick Barbanneau 2016-10-10 11:16:35 +02:00
parent ea621c31fc
commit 8e5a1fc85b

View file

@ -7,6 +7,9 @@ echo
echo "Press any key to begin"
set jnk = $<
echo "Updatiing system ..."
/usr/sbin/pkg update -f && /usr/sbin/pkg upgrade -y
if ( -f /usr/local/etc/rc.d/gogs ) then
echo "Gogs Install found. Updating..."
echo
@ -26,10 +29,6 @@ else
echo "Starting SSH Service"
/usr/sbin/service sshd start
# 4) Update packages and upgrade any.
echo "Updating packages"
/usr/sbin/pkg update -f
echo "Upgrading packages"
/usr/sbin/pkg upgrade -y
echo "Installing memcached, redis & go"
/usr/sbin/pkg install -y memcached redis go git bash
echo "Enabling & starting memcached & redis"