install unzip when redhat9

This commit is contained in:
qiaofeng1227 2023-06-17 11:35:57 +08:00
parent 52bc0c480b
commit b55c68ceea
4 changed files with 5 additions and 4 deletions

View file

@ -2,6 +2,7 @@
1. appstore 升级脚本输出内容过多引起的异常修复
2. 安装脚本对于 yq 失败的异常处理
3. 对部分操作系统(如 redhat9安装 unzip 包
## 0.4.0 release on 2023-06-15

View file

@ -10,7 +10,7 @@ COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
# Install supervisords
# Install supervisord
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh

View file

@ -59,7 +59,7 @@ def AppStoreUpdate():
for change in change_log[1:]:
if change != '':
content.append(change)
shell_execute.execute_command_output_all("wget curl https://websoft9.github.io/StackHub/install/update_appstore.sh && bash update_appstore.sh 1>/dev/null 2>&1")
shell_execute.execute_command_output_all("wget https://websoft9.github.io/StackHub/install/update_appstore.sh && bash update_appstore.sh 1>/dev/null 2>&1")
return content
else:

View file

@ -134,7 +134,7 @@ echo "Prepare to install Tools ..."
if [ "$os_type" == 'CentOS' ] || [ "$os_type" == 'CentOS Stream' ] || [ "$os_type" == 'Fedora' ] || [ "$os_type" == 'OracleLinux' ] || [ "$os_type" == 'Redhat' ];then
sudo yum update -y 1>/dev/null 2>&1
sudo yum install git curl wget yum-utils jq firewalld bc -y 1>/dev/null 2>&1
sudo yum install git curl wget yum-utils jq firewalld bc unzip -y 1>/dev/null 2>&1
fi
@ -144,7 +144,7 @@ if [ "$os_type" == 'Ubuntu' ] || [ "$os_type" == 'Debian' ] ;then
sleep 5
done
sudo apt update -y 1>/dev/null 2>&1
sudo apt install git curl wget jq firewalld bc -y 1>/dev/null 2>&1
sudo apt install git curl wget jq firewalld bc unzip -y 1>/dev/null 2>&1
fi
}