docker安装恢复版本获取,docker换源展示源数组错误,备份python直接安装不检测
This commit is contained in:
parent
c84211da77
commit
59df170455
@ -39,7 +39,6 @@ if [[ $local_pick =~ Yy ]];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! $baidu_pick =~ [Nn] ]];then
|
if [[ ! $baidu_pick =~ [Nn] ]];then
|
||||||
if ! command -v python3 -m venv &> /dev/null ; then
|
|
||||||
if [[ -f "/usr/bin/apt-get" ]];then
|
if [[ -f "/usr/bin/apt-get" ]];then
|
||||||
sudo apt-get install python3-venv -y
|
sudo apt-get install python3-venv -y
|
||||||
elif [[ -f "/usr/bin/apt" ]];then
|
elif [[ -f "/usr/bin/apt" ]];then
|
||||||
@ -48,7 +47,6 @@ if [[ ! $baidu_pick =~ [Nn] ]];then
|
|||||||
echo "无法自动安装 python3-venv 请手动安装"
|
echo "无法自动安装 python3-venv 请手动安装"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
python3 -m venv "${path}/venv"
|
python3 -m venv "${path}/venv"
|
||||||
source "${path}/venv/bin/activate"
|
source "${path}/venv/bin/activate"
|
||||||
pip install bypy
|
pip install bypy
|
||||||
|
@ -36,7 +36,7 @@ if [[ $pick == '1' ]];then
|
|||||||
for i in "${!img_dick[@]}";
|
for i in "${!img_dick[@]}";
|
||||||
do
|
do
|
||||||
img_pick=$(( img_pick+1 ))
|
img_pick=$(( img_pick+1 ))
|
||||||
declare[$img_pick]=$i
|
img_number[$img_pick]=$i
|
||||||
echo "${img_pick}.${i}"
|
echo "${img_pick}.${i}"
|
||||||
done
|
done
|
||||||
read -p "请输入要选择的镜像,也可直接输入镜像网站:" img_pick
|
read -p "请输入要选择的镜像,也可直接输入镜像网站:" img_pick
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
declare install_str
|
declare install_str
|
||||||
|
declare version="$(cat /etc/os-release | grep "^ID" | awk -F '=' '{print $2}')"
|
||||||
|
|
||||||
declare pkg
|
declare pkg
|
||||||
if [[ -f "/usr/bin/apt-get" ]];then
|
if [[ -f "/usr/bin/apt-get" ]];then
|
||||||
|
Loading…
Reference in New Issue
Block a user