diff --git a/gogs-root.sh b/gogs-root.sh index 14fe9e7..0e1d29a 100755 --- a/gogs-root.sh +++ b/gogs-root.sh @@ -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"