<commit_before>#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

. include/common.sh

# Check whether the login user is a root account?
if [ $(id -u) != "0" ]; then
    Echo_Red "Error: You must be a root logon to run this script, please use root to install the lnamp."
    exit 1
fi

cur_dir=$(pwd)
Stack=$1
if [ "${Stack}" = "" ]; then
    Stack="lnamp"
else
    Stack=$1
fi

. version.sh
. config.sh

. include/main.sh
. include/init.sh
. include/mysql.sh
. include/mariadb.sh
. include/php.sh
. include/nginx.sh
. include/apache.sh
. include/end.sh

Get_Linux_Distribution_Name

if [ "${DISTRO}" = "unknow" ]; then
    Echo_Red "Error: Unable to get Linux distribution name, or do NOT support the current distribution."
    exit 1
fi

clear
echo "+------------------------------------------------------------------------+"
echo "|              LNMP/LAMP/LNAMP Shell Script for Linux Server             |"
echo "|                          Version: ${LNAMP_Ver}                                  |"
echo "|                     Host OS Name: ${DISTRO}                             "
echo "|                           Written by Licess                            |"
echo "|                          Modified by shines77                          |"
echo "+------------------------------------------------------------------------+"
echo "|        A tool to auto-compile & install LNMP/LAMP/LNAMP on Linux       |"
echo "+------------------------------------------------------------------------+"
echo "|     For more information please visit http://lnamp.cloudbuses.com      |"
echo "+------------------------------------------------------------------------+"

Init_Install()
{
    Press_Install
    Print_Sys_Info
    if [ "${DISTRO}" = "RHEL" ]; then
        RHEL_Modify_Source
    fi
    Get_Linux_Distribution_Version
    if [ "${DISTRO}" = "Ubuntu" ]; then
        Ubuntu_Modify_Source
    fi
    Set_Timezone
    if [ "$PM" = "yum" ]; then
        CentOS_InstallNTP
        CentOS_RemoveAMP
        CentOS_Dependent
    elif [ "$PM" = "apt" ]; then
        Debian_InstallNTP
        Xen_Hwcap_Setting
        Debian_RemoveAMP
        Debian_Dependent
    fi
    Disable_Selinux
    Check_Download_Files<commit_msg>更新了 install.sh 的 welcome screen 效果.<commit_after>#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

. include/common.sh

# Check whether the login user is a root account?
if [ $(id -u) != "0" ]; then
    Echo_Red "Error: You must be a root logon to run this script, please use root to install the lnamp."
    exit 1
fi

cur_dir=$(pwd)
Stack=$1
if [ "${Stack}" = "" ]; then
    Stack="lnamp"
else
    Stack=$1
fi

. version.sh
. config.sh

. include/main.sh
. include/init.sh
. include/mysql.sh
. include/mariadb.sh
. include/php.sh
. include/nginx.sh
. include/apache.sh
. include/end.sh

Get_Linux_Distribution_Name

if [ "${DISTRO}" = "unknow" ]; then
    Echo_Red "Error: Unable to get Linux distribution name, or do NOT support the current distribution."
    exit 1
fi

clear
echo "+------------------------------------------------------------------------+"
echo "|              LNMP/LAMP/LNAMP Shell Script for Linux Server             |"
echo "|                          Version: ${LNAMP_Ver}                                  |"
echo "|                          Host OS: ${DISTRO}                             "
echo "|                           Written by Licess                            |"
echo "|                          Modified by shines77                          |"
echo "|                    Last Modified: 2015-08-04                           |"
echo "+------------------------------------------------------------------------+"
echo "|        A tool to auto-compile & install LNMP/LAMP/LNAMP on Linux       |"
echo "+------------------------------------------------------------------------+"
echo "|     For more information please visit http://lnamp.cloudbuses.com      |"
echo "+------------------------------------------------------------------------+"

Init_Install()
{
    Press_Install
    Print_Sys_Info
    if [ "${DISTRO}" = "RHEL" ]; then
        RHEL_Modify_Source
    fi
    Get_Linux_Distribution_Version
    if [ "${DISTRO}" = "Ubuntu" ]; then
        Ubuntu_Modify_Source
    fi
    Set_Timezone
    if [ "$PM" = "yum" ]; then
        CentOS_InstallNTP
        CentOS_RemoveAMP
        CentOS_Dependent
    elif [ "$PM" = "apt" ]; then
        Debian_InstallNTP
        Xen_Hwcap_Setting
        Debian_RemoveAMP
        Debian_Dependent
    fi
    Disable_Selinux
    Check_Download_Files
{'fraction_non_alphanumeric': 0.22138228941684665, 'fraction_numerical': 0.004751619870410367, 'mean_word_length': 1.3005464480874316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2579122', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1284, 'n_words': 331}