不再替换apt

This commit is contained in:
2023-01-30 16:12:40 +08:00
parent 688d1a38db
commit 6cc7b4254e
5 changed files with 6 additions and 5 deletions

View File

@@ -1,6 +0,0 @@
#!/bin/bash
source /opt/durapps/transhell/transhell.sh
load_transhell
echo "${TRANSHELL_CONTENT_APT_IS_PROVIDED_BY_OYO} "
oyo $@

4
OYO/usr/bin/oyo Normal file → Executable file
View File

@@ -19,14 +19,14 @@ fi
apt-get update
}
#####没有conf还不是root的就先root下获取conf
if [ ! -e /tmp/oyo/apt-fast.conf] && [ "$(id -u)" != "0" ];then
if [ ! -e /tmp/oyo/apt-fast.conf ] && [ "$(id -u)" != "0" ];then
echo -e "${TRANSHELL_CONTENT_APT_FAST_CONF_NOT_FOUND_NEED_AUTH_TO_UPDATE}"
pkexec $0 $@
exit
fi
##### 没有conf的获取conf再进行操作
if [ ! -e /tmp/oyo/apt-fast.conf];then
if [ ! -e /tmp/oyo/apt-fast.conf ];then
update-apt-fast-conf
fi
##### yyupdate手动操作更新