PVE检测虚拟机是否存活并自动重启
#!/bin/bash QMPATH="/usr/sbin/qm" MAX_FAILURES=3 # 连续失败的最大次数 RESET_AFTER_SUCCESS=2 # 连续成功后重置失败计数的阈值 FAILURE_FILE="/pa...
#!/bin/bash QMPATH="/usr/sbin/qm" MAX_FAILURES=3 # 连续失败的最大次数 RESET_AFTER_SUCCESS=2 # 连续成功后重置失败计数的阈值 FAILURE_FILE="/pa...
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(i...
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to ru...
#!/bin/env bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this sc...
#!/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check the network status NET_NUM=`ping -c 4 www.baidu.com |awk '/packet loss/{print $6}' |sed -e 's/%//'` if [ ...
# coding=utf-8 # # 用于从纯真网络(cz88.net)更新qqwry.dat # for Python 3.0+ # 来自 http...
标签: centos 更新 linux update python 自动 qqwry.dat python3 qqwry
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must b...
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0"...
这篇文章在原作者的代码基础上稍微进行了下修改,让其完全满足我们svn结构的,使其能够远程同步到另外一台服务器上.
svn服务器ip:10.168.227.xx
项目web服务器:10.27.2.xx
svn代码库:svn://10.168.227.xx/slogra/branches/dev_whdysp2017spring/
项目web服务器代码根目录:/data/www/vhosts
先来看svn钩子里的内容:
cd /home/svn/slogra/hooks/
vi post-commit
...