Skip to content

Commit

Permalink
add ubuntu 15.10 check and fix license mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
licess committed Apr 7, 2016
1 parent edfd245 commit e801ce2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion License
@@ -1,5 +1,5 @@
版权信息说明:
LNMP源码规本站所有,其他Nginx、PHP、MySQL等源码规原作者所有。
LNMP源码归本站所有,其他Nginx、PHP、MySQL等源码规原作者所有。
1.任何用户均可免费使用LNMP
2.未经允许禁止修改后公开发布
3.引用代码必须注明
9 changes: 9 additions & 0 deletions include/init.sh
Expand Up @@ -119,6 +119,8 @@ Ubuntu_Modify_Source()
Ubuntu_Deadline vivid
elif grep -Eqi "12.04" /etc/*-release || echo "${Ubuntu_Version}" | grep -Eqi '^12.04'; then
Ubuntu_Deadline precise
elif grep -Eqi "15.10" /etc/*-release || echo "${Ubuntu_Version}" | grep -Eqi '^15.10'; then
Ubuntu_Deadline wily
fi
if [ "${CodeName}" != "" ]; then
\cp /etc/apt/sources.list /etc/apt/sources.list.$(date +"%Y%m%d")
Expand Down Expand Up @@ -151,6 +153,7 @@ Ubuntu_Deadline()
utopic_deadline=`date -d "2015-10-1 00:00:00" +%s`
vivid_deadline=`date -d "2016-2-24 00:00:00" +%s`
precise_deadline=`date -d "2017-5-27 00:00:00" +%s`
wily_deadline=`date -d "2016-7-22 00:00:00" +%s`
cur_time=`date +%s`
case "$1" in
utopic)
Expand All @@ -171,6 +174,12 @@ Ubuntu_Deadline()
Check_Old_Releases_URL precise
fi
;;
wily)
if [ ${cur_time} -gt ${wily_deadline} ]; then
echo "${cur_time} > ${wily_deadline}"
Check_Old_Releases_URL wily
fi
;;
esac
}

Expand Down

0 comments on commit e801ce2

Please sign in to comment.