不再替换apt
This commit is contained in:
@@ -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
4
OYO/usr/bin/oyo
Normal file → Executable 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手动操作更新
|
||||
|
||||
Reference in New Issue
Block a user