From 8e5a1fc85b84174ff066ef2a6c309b4b532076b9 Mon Sep 17 00:00:00 2001 From: Yorick Date: Mon, 10 Oct 2016 11:16:35 +0200 Subject: [PATCH] Package update and upgrade done before installing / updating --- gogs-root.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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"