清羽Gist

Explore

  • All gists
  • Topics
  • Users
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 한국어 Polski Português Русский Türkçe Українська 简体中文 繁體中文

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
s

Topics

shell

Recently created Least recently created Recently updated Least recently updated
LiuShen

LiuShen / Webhook实现仓库自动备份

Last active 6 months ago cmd github shell sync webhook

宝塔面板,使用Webhook,自动同步更新后的仓库,拉取静态源码部署博客

0 0 1
webhook.sh 1 files
1 #!/bin/bash
2 echo ""
3 #输出当前时间
4 date --date='0 days ago' "+%Y-%m-%d %H:%M:%S"
5 echo "Start"
6 #判断宝塔WebHook参数是否存在
7 if [ ! -n "$1" ];
8 then
9 echo "param参数错误"
10 echo "End"
清羽Gist © 2026 QingyuGist
陕ICP备2024028531号-2 陕公网安备61011602000637号