Package update and upgrade done before installing / updating
This commit is contained in:
parent
ea621c31fc
commit
8e5a1fc85b
1 changed files with 3 additions and 4 deletions
|
@ -7,6 +7,9 @@ echo
|
||||||
echo "Press any key to begin"
|
echo "Press any key to begin"
|
||||||
set jnk = $<
|
set jnk = $<
|
||||||
|
|
||||||
|
echo "Updatiing system ..."
|
||||||
|
/usr/sbin/pkg update -f && /usr/sbin/pkg upgrade -y
|
||||||
|
|
||||||
if ( -f /usr/local/etc/rc.d/gogs ) then
|
if ( -f /usr/local/etc/rc.d/gogs ) then
|
||||||
echo "Gogs Install found. Updating..."
|
echo "Gogs Install found. Updating..."
|
||||||
echo
|
echo
|
||||||
|
@ -26,10 +29,6 @@ else
|
||||||
echo "Starting SSH Service"
|
echo "Starting SSH Service"
|
||||||
/usr/sbin/service sshd start
|
/usr/sbin/service sshd start
|
||||||
# 4) Update packages and upgrade any.
|
# 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"
|
echo "Installing memcached, redis & go"
|
||||||
/usr/sbin/pkg install -y memcached redis go git bash
|
/usr/sbin/pkg install -y memcached redis go git bash
|
||||||
echo "Enabling & starting memcached & redis"
|
echo "Enabling & starting memcached & redis"
|
||||||
|
|
Reference in a new issue