diff --git a/scripts/fail2ban/install.sh b/scripts/fail2ban/install.sh index 9eca1799..a3109c3d 100644 --- a/scripts/fail2ban/install.sh +++ b/scripts/fail2ban/install.sh @@ -23,7 +23,7 @@ OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || if [ "${OS}" == "centos" ]; then dnf install -y fail2ban elif [ "${OS}" == "debian" ]; then - apt install -y fail2ban + apt-get install -y fail2ban else echo -e $HR echo "错误:不支持的操作系统" diff --git a/scripts/fail2ban/uninstall.sh b/scripts/fail2ban/uninstall.sh index 6dbe02fc..81bbf665 100644 --- a/scripts/fail2ban/uninstall.sh +++ b/scripts/fail2ban/uninstall.sh @@ -28,7 +28,7 @@ systemctl disable fail2ban if [ "${OS}" == "centos" ]; then dnf remove -y fail2ban elif [ "${OS}" == "debian" ]; then - apt install -y fail2ban + apt-get install -y fail2ban else echo -e $HR echo "错误:不支持的操作系统" diff --git a/scripts/fail2ban/update.sh b/scripts/fail2ban/update.sh index e2fe97c6..8e1e13b4 100644 --- a/scripts/fail2ban/update.sh +++ b/scripts/fail2ban/update.sh @@ -23,7 +23,7 @@ OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || if [ "${OS}" == "centos" ]; then dnf install -y fail2ban elif [ "${OS}" == "debian" ]; then - apt install -y fail2ban + apt-get install -y fail2ban else echo -e $HR echo "错误:不支持的操作系统" diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index c86d8f17..6eee8234 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -125,8 +125,8 @@ Prepare_system() { sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list fi - apt update -y - apt install -y curl wget zip unzip tar git jq git dos2unix rsyslog + apt-get update -y + apt-get install -y curl wget zip unzip tar git jq git dos2unix rsyslog else echo -e $HR echo "错误:该系统不支持安装耗子Linux面板,请更换Debian12/RHEL9安装。" @@ -206,7 +206,7 @@ Init_Panel() { firewall-cmd --permanent --zone=public --add-port=${sshPort}/tcp > /dev/null 2>&1 firewall-cmd --reload elif [ "${OS}" == "debian" ]; then - apt install ufw -y + apt-get install ufw -y echo y | ufw enable ufw allow 22/tcp ufw allow 80/tcp diff --git a/scripts/mysql/install.sh b/scripts/mysql/install.sh index fe51372d..7af71d6e 100644 --- a/scripts/mysql/install.sh +++ b/scripts/mysql/install.sh @@ -50,8 +50,8 @@ if [ "${OS}" == "centos" ]; then dnf groupinstall "Development Tools" -y dnf install cmake bison ncurses-devel libtirpc-devel openssl-devel pkg-config openldap-devel libudev-devel cyrus-sasl-devel patchelf rpcgen rpcsvc-proto-devel -y elif [ "${OS}" == "debian" ]; then - apt update - apt install build-essential cmake bison libncurses5-dev libtirpc-dev libssl-dev pkg-config libldap2-dev libudev-dev libsasl2-dev patchelf -y + apt-get update + apt-get install build-essential cmake bison libncurses5-dev libtirpc-dev libssl-dev pkg-config libldap2-dev libudev-dev libsasl2-dev patchelf -y else echo -e $HR echo "错误:耗子Linux面板不支持该系统" diff --git a/scripts/openresty/install.sh b/scripts/openresty/install.sh index 036746ff..fb0715c7 100644 --- a/scripts/openresty/install.sh +++ b/scripts/openresty/install.sh @@ -39,8 +39,8 @@ if [ "${OS}" == "centos" ]; then dnf groupinstall "Development Tools" -y dnf install tar unzip gd gd-devel git-core flex perl oniguruma oniguruma-devel libsodium-devel libxml2-devel libxslt-devel GeoIP-devel bison yajl yajl-devel curl curl-devel ncurses-devel libevent-devel readline-devel libuuid-devel brotli-devel icu libicu libicu-devel openssl openssl-devel -y elif [ "${OS}" == "debian" ]; then - apt update - apt install build-essential tar unzip libgd3 libgd-dev git flex perl libonig-dev libsodium-dev libxml2-dev libxslt1-dev libgeoip-dev bison libyajl-dev curl libcurl4-openssl-dev libncurses5-dev libevent-dev libreadline-dev uuid-dev libbrotli-dev icu-devtools libicu-dev openssl libssl-dev -y + apt-get update + apt-get install build-essential tar unzip libgd3 libgd-dev git flex perl libonig-dev libsodium-dev libxml2-dev libxslt1-dev libgeoip-dev bison libyajl-dev curl libcurl4-openssl-dev libncurses5-dev libevent-dev libreadline-dev uuid-dev libbrotli-dev icu-devtools libicu-dev openssl libssl-dev -y else echo -e $HR echo "错误:耗子Linux面板不支持该系统" diff --git a/scripts/php/install.sh b/scripts/php/install.sh index ae1dc21d..fa4f75e4 100644 --- a/scripts/php/install.sh +++ b/scripts/php/install.sh @@ -42,8 +42,8 @@ if [ "${OS}" == "centos" ]; then dnf groupinstall "Development Tools" -y dnf install autoconf glibc-headers gdbm-devel gd gd-devel perl oniguruma-devel libsodium-devel libxml2-devel sqlite-devel libzip-devel bzip2-devel xz-devel libpng-devel libjpeg-devel libwebp-devel libavif-devel freetype-devel gmp-devel openssl-devel readline-devel libxslt-devel libcurl-devel pkgconfig libedit-devel zlib-devel pcre-devel crontabs libicu libicu-devel c-ares -y elif [ "${OS}" == "debian" ]; then - apt update - apt install build-essential autoconf libc6-dev libgdbm-dev libgd-tools libgd-dev perl libonig-dev libsodium-dev libxml2-dev libsqlite3-dev libzip-dev libbz2-dev liblzma-dev libpng-dev libjpeg-dev libwebp-dev libavif-dev libfreetype6-dev libgmp-dev libssl-dev libreadline-dev libxslt1-dev libcurl4-openssl-dev pkg-config libedit-dev zlib1g-dev libpcre3-dev cron libicu-dev libc-ares2 libc-ares-dev -y + apt-get update + apt-get install build-essential autoconf libc6-dev libgdbm-dev libgd-tools libgd-dev perl libonig-dev libsodium-dev libxml2-dev libsqlite3-dev libzip-dev libbz2-dev liblzma-dev libpng-dev libjpeg-dev libwebp-dev libavif-dev libfreetype6-dev libgmp-dev libssl-dev libreadline-dev libxslt1-dev libcurl4-openssl-dev pkg-config libedit-dev zlib1g-dev libpcre3-dev cron libicu-dev libc-ares2 libc-ares-dev -y else echo -e $HR echo "错误:耗子Linux面板不支持该系统" diff --git a/scripts/php_extensions/imagick.sh b/scripts/php_extensions/imagick.sh index 84002fc0..01f98dfe 100644 --- a/scripts/php_extensions/imagick.sh +++ b/scripts/php_extensions/imagick.sh @@ -38,7 +38,7 @@ Install() { if [ "${OS}" == "centos" ]; then dnf install ImageMagick ImageMagick-devel -y elif [ "${OS}" == "debian" ]; then - apt install imagemagick libmagickwand-dev -y + apt-get install imagemagick libmagickwand-dev -y else echo -e $HR echo "错误:耗子Linux面板不支持该系统" diff --git a/scripts/postgresql/install.sh b/scripts/postgresql/install.sh index 60eb90dd..4d24ebc4 100644 --- a/scripts/postgresql/install.sh +++ b/scripts/postgresql/install.sh @@ -42,8 +42,8 @@ if [ "${OS}" == "centos" ]; then dnf groupinstall "Development Tools" -y dnf install make gettext zlib-devel readline-devel libicu-devel libxml2-devel libxslt-devel openssl-devel systemd-devel -y elif [ "${OS}" == "debian" ]; then - apt update - apt install build-essential make gettext zlib1g-dev libreadline-dev libicu-dev libxml2-dev libxslt-dev libssl-dev libsystemd-dev -y + apt-get update + apt-get install build-essential make gettext zlib1g-dev libreadline-dev libicu-dev libxml2-dev libxslt-dev libssl-dev libsystemd-dev -y else echo -e $HR echo "错误:耗子Linux面板不支持该系统" diff --git a/scripts/redis/install.sh b/scripts/redis/install.sh index f1ebbf32..0aecfa96 100644 --- a/scripts/redis/install.sh +++ b/scripts/redis/install.sh @@ -37,8 +37,8 @@ if [ "${OS}" == "centos" ]; then dnf groupinstall "Development Tools" -y dnf install systemd-devel openssl-devel -y elif [ "${OS}" == "debian" ]; then - apt update - apt install build-essential libsystemd-dev libssl-dev -y + apt-get update + apt-get install build-essential libsystemd-dev libssl-dev -y else echo -e $HR echo "错误:耗子Linux面板不支持该系统" diff --git a/scripts/s3fs/install.sh b/scripts/s3fs/install.sh index f84baeb9..e3b4adc8 100644 --- a/scripts/s3fs/install.sh +++ b/scripts/s3fs/install.sh @@ -23,7 +23,7 @@ OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || if [ "${OS}" == "centos" ]; then dnf install -y s3fs-fuse elif [ "${OS}" == "debian" ]; then - apt install -y s3fs + apt-get install -y s3fs else echo -e $HR echo "错误:不支持的操作系统" diff --git a/scripts/s3fs/uninstall.sh b/scripts/s3fs/uninstall.sh index 0f5d4f1a..a6784755 100644 --- a/scripts/s3fs/uninstall.sh +++ b/scripts/s3fs/uninstall.sh @@ -23,7 +23,7 @@ OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || if [ "${OS}" == "centos" ]; then dnf remove -y s3fs-fuse elif [ "${OS}" == "debian" ]; then - apt remove -y s3fs + apt-get remove -y s3fs else echo -e $HR echo "错误:不支持的操作系统" diff --git a/scripts/supervisor/install.sh b/scripts/supervisor/install.sh index ca9f8aad..3ff311e3 100644 --- a/scripts/supervisor/install.sh +++ b/scripts/supervisor/install.sh @@ -26,7 +26,7 @@ if [ "${OS}" == "centos" ]; then systemctl enable supervisord systemctl start supervisord elif [ "${OS}" == "debian" ]; then - apt install -y supervisor + apt-get install -y supervisor systemctl enable supervisor systemctl start supervisor else diff --git a/scripts/supervisor/uninstall.sh b/scripts/supervisor/uninstall.sh index 0b990a46..899bb55e 100644 --- a/scripts/supervisor/uninstall.sh +++ b/scripts/supervisor/uninstall.sh @@ -23,7 +23,7 @@ OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || if [ "${OS}" == "centos" ]; then dnf remove -y supervisor elif [ "${OS}" == "debian" ]; then - apt remove -y supervisor + apt-get remove -y supervisor else echo -e $HR echo "错误:不支持的操作系统"