mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-03 01:42:20 +08:00
update tool/update-upgrade/ss-do-upgrade.sh.
This commit is contained in:
parent
c66c5c6ca3
commit
94d6a566ca
@ -1,7 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#临时提升星火源的优先级
|
DEPEND=`which apt-fast`
|
||||||
sed -i 's/400/500/g' /etc/apt/preferences.d/sparkstore
|
if [ "$DEPEND" = "" ] ; then
|
||||||
sudo apt upgrade
|
echo "没有安装apt-fast,使用apt运行"
|
||||||
sed -i 's/500/400/g' /etc/apt/preferences.d/sparkstore
|
sudo apt upgrade -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
#恢复优先级
|
else
|
||||||
|
echo "已安装apt-fast,使用apt-fast加速运行"
|
||||||
|
sudo apt-fast upgrade -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user