diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..762f519 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +on: + push: + branches: + - main + +jobs: + contrib-readme-job: + runs-on: ubuntu-latest + name: A job to automate contrib in readme + permissions: + contents: write + pull-requests: write + steps: + - name: Contribute List + uses: akhilmhdh/contributors-readme-action@v2.3.11 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 43495a6..1ad73f3 100644 --- a/README.md +++ b/README.md @@ -1 +1,90 @@ -# 皇家每羊大学实用Shell脚本集合 +
+
+ +
+
+

OUC Shell

+
+
+
+ + + +
+
+ +为方便🐏大学生,爱特工作室编写了一些非常实用的Shell小程序,并且你可以非常方便地通过一个配置文件来启用和配置所有这里有的功能,而且只需要注册一个**Systemd**服务就可以实现自动化流程,非常方便 + +## ❗ 严正声明 + +本项目**仅供个人和学习使用**,禁止将本项目的代码作为商业及非法用途,禁止恶意修改本仓库代码,禁止通过本仓库代码挖掘校园网信息系统漏洞,违者将承担法律责任 + +## 🍕 食用方法 + +1.克隆本仓库 + +``` +git clone git@github.com:ITStudioOUC/OUC_Shell.git +``` + +2.运行脚本 + +``` +cd OUC_shell +bash main.sh +``` + +在首次运行或重新生成配置文件时,脚本会自动生成配置文件 `config.toml` ,之后脚本会自动退出,在你编辑好配置文件后重新启动脚本即可 + +3.注册服务 + +创建服务文件 + +``` +touch /etc/systemd/system/oucshell.service +``` + +编辑服务文件 + +``` +# 这只是一个systemd服务注册示例,不要直接拿来用 +[Unit] +Description=Campus Helper Service (Electricity & More) +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/path/to/your/repo # 这里改成你克隆的本仓库的路径 +ExecStart=/bin/bash /path/to/main.sh # 这里改成你的main.sh的路径 +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target +``` + +4.启动服务和设置自启动 + +``` +systemctl start oucshell.service +systemctl enable oucshell.service +``` + +## 🤝 贡献者 + + + + + + + + +
+ + Yaosanqi137 +
+ Yaosanqi137 +
+
+ \ No newline at end of file