修复 定时更新 丢失的问题

This commit is contained in:
Hyy2001X 2021-01-15 10:13:53 +08:00
parent 42fd37a939
commit be0e3c0a9d
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ Diy_Part2_Base() {
if [ "${INCLUDE_AutoUpdate}" == "true" ];then
ExtraPackages git lean luci-app-autoupdate https://github.com/Hyy2001X main
sed -i '/luci-app-autoupdate/d' .config > /dev/null 2>&1
echo "CONFIG_PACKAGE_luci-app-autoupdate=y" >> .config
echo -e "\nCONFIG_PACKAGE_luci-app-autoupdate=y" >> .config
Replace_File Scripts/AutoUpdate.sh package/base-files/files/bin
AutoUpdate_Version=$(awk 'NR==6' package/base-files/files/bin/AutoUpdate.sh | awk -F '[="]+' '/Version/{print $2}')
[[ -z "${AutoUpdate_Version}" ]] && AutoUpdate_Version="Unknown"