From 1e1d3fb35214a662337e0c2cdcf19a0f28bc4fab Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 17 Dec 2022 09:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpostinst=E9=A3=8E=E9=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deb/DEBIAN/postinst | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/deb/DEBIAN/postinst b/deb/DEBIAN/postinst index 434e5cf..23087e1 100755 --- a/deb/DEBIAN/postinst +++ b/deb/DEBIAN/postinst @@ -49,12 +49,18 @@ if [ `arch` != "x86_64" ]; then rm -rf /opt/apps/deepin-wine-runner/InstallNewWineHQ.sh fi # 到时候切换 gpg 源会方便很多 -if [ -d /usr/share/deepin-installer ]; then - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FD6EEA1F20CD4B27 > /dev/null 2>&1 | true - # 用于修复 2022.11.25 Better DDE 导致的 Deepin Community Live CD Install 版问题 - sh -c 'echo "deb [trusted=yes] https://proposed-packages.deepin.com/dde-apricot unstable main contrib non-free" > /etc/apt/sources.list.d/deepin-unstable.list' +if [ -r /etc/apt/sources.list.d/better-dde.list ]; then + if [ -d /usr/share/deepin-installer ]; then + # 用于修复 Deepin Community Live CD Install 版签名过期的问题 + wget -P /tmp/gfdgd-xi-sources https://code.gitlink.org.cn/gfdgd_xi/gfdgd-xi-apt-mirrors/raw/branch/master/gpg.asc + rm -rfv /etc/apt/trusted.gpg.d/gfdgdxi-list.gpg | true + cp -v /tmp/gfdgd-xi-sources/gpg.asc.gpg /etc/apt/trusted.gpg.d/gfdgdxi-list.gpg + # 用于修复 2022.11.25 Better DDE 导致的 Deepin Community Live CD Install 版问题 + # 移除 Better DDE 源 + rm -rfv /etc/apt/sources.list.d/better-dde.list + apt update > /dev/null 2>&1 | true + fi fi -apt update > /dev/null 2>&1 | true # 设置目录权限,让用户可读可写,方便后续删除组件 chmod 777 -R /opt/apps/deepin-wine-runner # 向服务器返回安装数加1(不显示内容且忽略错误)