Browse Source

Adjust repository update position.

Raphael Schneeberger 6 years ago
parent
commit
2c9134ea16
1 changed files with 1 additions and 3 deletions
  1. 1 3
      install/hst-install-ubuntu.sh

+ 1 - 3
install/hst-install-ubuntu.sh

@@ -582,6 +582,7 @@ echo
 
 
 # Updating system
 # Updating system
 echo -ne "Updating currently installed packages, please wait... "
 echo -ne "Updating currently installed packages, please wait... "
+apt-get -qq update
 apt-get -y upgrade >> $LOG &
 apt-get -y upgrade >> $LOG &
 BACK_PID=$!
 BACK_PID=$!
 
 
@@ -836,9 +837,6 @@ fi
 #                     Install packages                     #
 #                     Install packages                     #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
-# Updating system
-apt-get -qq update
-
 # Disabling daemon autostart on apt-get install
 # Disabling daemon autostart on apt-get install
 echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
 echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
 chmod a+x /usr/sbin/policy-rc.d
 chmod a+x /usr/sbin/policy-rc.d