修改: 现在只检测星火源的更新,避免出现问题

新文件:   检测网络环境,没网就退出
This commit is contained in:
2022-04-14 17:26:54 +08:00
parent c4b26045d9
commit 72019f7cce
2 changed files with 28 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ case "$1" in
cp -f /tmp/spark-store-install/spark-store.asc.gpg /etc/apt/trusted.gpg.d/spark-store.gpg
# Run apt update to avoid users being fucked up by the non-exist dependency problem
apt update
apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"`
# Create symbo links to start upgrade detect
ln -s /opt/durapps/spark-store/bin/update-upgrade/autostart/spark-update-notifier.desktop /etc/xdg/autostart/spark-update-notifier.desktop