修复 定时更新 丢失的问题
This commit is contained in:
parent
42fd37a939
commit
be0e3c0a9d
|
@ -37,7 +37,7 @@ Diy_Part2_Base() {
|
||||||
if [ "${INCLUDE_AutoUpdate}" == "true" ];then
|
if [ "${INCLUDE_AutoUpdate}" == "true" ];then
|
||||||
ExtraPackages git lean luci-app-autoupdate https://github.com/Hyy2001X main
|
ExtraPackages git lean luci-app-autoupdate https://github.com/Hyy2001X main
|
||||||
sed -i '/luci-app-autoupdate/d' .config > /dev/null 2>&1
|
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
|
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}')
|
AutoUpdate_Version=$(awk 'NR==6' package/base-files/files/bin/AutoUpdate.sh | awk -F '[="]+' '/Version/{print $2}')
|
||||||
[[ -z "${AutoUpdate_Version}" ]] && AutoUpdate_Version="Unknown"
|
[[ -z "${AutoUpdate_Version}" ]] && AutoUpdate_Version="Unknown"
|
||||||
|
|
Loading…
Reference in New Issue