Source

iredmail / iRedMail / pkgs / get_all.sh

Diff from to

File iRedMail/pkgs/get_all.sh

 prepare_dirs
 
 if [ X"${DISTRO}" == X"RHEL" ]; then
+    # Clean metadata
+    ECHO_INFO "Clean metadata of yum repositories."
+    yum clean metadata
+
+    # Create yum repository.
+    create_repo_rhel
+
     # Check required commands, install related package if command doesn't exist.
     check_pkg ${BIN_WHICH} ${PKG_WHICH} && \
     check_pkg ${BIN_WGET} ${PKG_WGET} && \
-
-    # Create yum repository.
-    create_repo_rhel
 elif [ X"${DISTRO}" == X"SUSE" ]; then
-    create_repo_suse
-
     ECHO_INFO "Clean metadata of zypper repositories."
     zypper clean --metadata --raw-metadata
 
+    create_repo_suse
+
     ECHO_INFO "Refresh zypper repositories."
     zypper refresh
 elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then