update tool/update-upgrade/ss-do-upgrade.sh.

This commit is contained in:
shenmo 2022-04-26 06:08:30 +00:00 committed by Gitee
parent 42362fd0ca
commit c974349c9f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
set -e #临时提升星火源的优先级
sudo apt upgrade -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" sed -i 's/400/500/g' /etc/apt/preferences.d/sparkstore
sudo apt upgrade
sed -i 's/500/400/g' /etc/apt/preferences.d/sparkstore
#恢复优先级