Commits

Zhang Huangbin committed 20a5d7c

Add linux mint 13 support.

Comments (0)

Files changed (3)

iRedMail/conf/global

         export DISTRO_CODENAME="$(grep 'DISTRIB_CODENAME' /etc/lsb-release | awk -F'=' '{print $2}')"
 
         # Linux Mint support
+        # - 13 (maya) based on Ubuntu 12.04
         # - 12 (lisa) based on Ubuntu 11.10
         if [ X"${DISTRO_CODENAME}" == X"lisa" ]; then
             export DISTRO_CODENAME="oneiric"
+        elif [ X"${DISTRO_CODENAME}" == X"maya" ]; then
+            export DISTRO_CODENAME="precise"
         fi
 
         # Support PGSQL backend on Ubuntu 11.10 and later releases

iRedMail/functions/cleanup.sh

             fi
 
             # Start/Restart necessary services.
-            for i in ${ENABLED_SERVICES}
+            for srv in ${ENABLED_SERVICES}
             do
-                service_control ${i} restart
+                service_control ${srv} restart
             done
             export POSTFIX_STARTED='YES'
             ;;
     fi
 
     cat <<EOF
-*   # for i in ${ENABLED_SERVICES}; do ${DIR_RC_SCRIPTS}/\${i} restart; done
+*   # for srv in ${ENABLED_SERVICES}; do ${DIR_RC_SCRIPTS}/\${srv} restart; done
 *
 EOF
 fi

iRedMail/functions/packages_freebsd.sh

             if [ X"$(eval echo ${status})" != X"DONE" ]; then
                 cd /usr/ports/${i} && \
                     ECHO_INFO "Installing port: ${i} ..."
-                    echo "export status_installing_port_${portname}='processing'" >> ${STATUS_FILE}
+                    echo "export status_install_port_${portname}='processing'" >> ${STATUS_FILE}
                     make clean && make install clean
 
                     if [ X"$?" == X"0" ]; then
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.