mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update ssh.sh
This commit is contained in:
parent
b49d2f11cc
commit
c53755753d
1 changed files with 2 additions and 2 deletions
|
@ -64,13 +64,13 @@ install_required_modules() {
|
||||||
do
|
do
|
||||||
if command -v apt-get > /dev/null 2>&1; then
|
if command -v apt-get > /dev/null 2>&1; then
|
||||||
if dpkg -s $module > /dev/null 2>&1 ; then
|
if dpkg -s $module > /dev/null 2>&1 ; then
|
||||||
echo "$module 已经安装!"
|
echo "$module has benn installed."
|
||||||
else
|
else
|
||||||
apt-get install -y $module
|
apt-get install -y $module
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
apt-get install -y $module --fix-missing
|
apt-get install -y $module --fix-missing
|
||||||
fi
|
fi
|
||||||
echo "$module 已尝试过安装!"
|
echo "$module has been tried and installed!"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
${PACKAGE_INSTALL[int]} $module
|
${PACKAGE_INSTALL[int]} $module
|
||||||
|
|
Loading…
Reference in a new issue