mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
!43 ss-apt-fast相关改动:先行获取mirror和自动安装apt-fast
* 修复 多位数无法显示 * modified: tool/update-upgrade/ss-do-upgrade.sh * modified: tool/update-upgrade/ss-do-upgrade.sh * 更改依赖判断方法 * modified: debian/changelog * * 新增:ssinstall现在会在没有apt-fast的时候自动安装
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
#/bin/bash
|
||||
DEPEND=`dpkg -l | grep apt-fast`
|
||||
if [ "$DEPEND" = "" ] ; then
|
||||
echo "未安装依赖:apt-fast 本脚本退出"
|
||||
exit 0
|
||||
|
||||
if [ "$(id -u)" != "0" ]
|
||||
then
|
||||
echo "ss-apt-fast需要在root下运行"
|
||||
exit
|
||||
fi
|
||||
|
||||
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/apt-fast.conf' /etc/apt-fast.conf apt-fast "$@"
|
||||
DEPEND=`which apt-fast`
|
||||
if [ "$DEPEND" = "" ] ; then
|
||||
echo "未安装依赖:apt-fast 开始安装"
|
||||
apt install apt-fast -y
|
||||
fi
|
||||
|
||||
rm /opt/durapps/spark-store/bin/apt-fast-conf/apt-fast.conf
|
||||
curl -o /opt/durapps/spark-store/bin/apt-fast-conf/apt-fast.conf "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/apt-fast.conf"
|
||||
|
||||
bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/apt-fast.conf' /etc/apt-fast.conf apt-fast "$@"
|
||||
Reference in New Issue
Block a user