Giter Club home page Giter Club logo

autoupgrade's Introduction

AutoUpgrade

Debian 自动更新脚本。

需使用root权限进行安装。安装过程中将询问是否需要更新后提醒功能,若输入“N”则不会提醒;若输入“Y”,则需要输入电报机器人的token和chat id,更新后将通过电报机器人进行提醒。

文件位于/usr/local/AutoUpgrade/中,其中AutoUpgrade.sh为脚本,使用crontab实现每天凌晨3点进行检查更新,upgrade.log为日志,包含更新的时间和内容。

wget --no-check-certificate -O AutoUpgradeInstall.sh https://raw.githubusercontent.com/uselibrary/AutoUpgrade/main/install.sh && chmod +x AutoUpgradeInstall.sh && bash AutoUpgradeInstall.sh

Upgrade automatically for Debain

Run the code as root. There is opetion to notice you by telegram bot. If you input "N", you will not have noticed atfer the system was upgraded. Or, you need input token and chat id of your telegram bot who will notice you once the system upgraded.

The files locate at /usr/local/AutoUpgrade/. AutoUpgrade.sh is the script which relies on crontab to upgrade daily (3 am). upgrade.log is log, including upgrade time and content.

wget --no-check-certificate -O AutoUpgradeInstall.sh https://raw.githubusercontent.com/uselibrary/AutoUpgrade/main/install.sh && chmod +x AutoUpgradeInstall.sh && bash AutoUpgradeInstall.sh

autoupgrade's People

Contributors

uselibrary avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.