o
This commit is contained in:
@@ -8,7 +8,7 @@ LOG_FILE="/var/log/update_unet_conf.log"
|
|||||||
|
|
||||||
# 日志函数
|
# 日志函数
|
||||||
log() {
|
log() {
|
||||||
echo "[$(date +%Y-%m-%d %H:%M:%S)] $1" >> "$LOG_FILE"
|
echo "[$(date +%Y%m%d%H%M%S)] $1" >> "$LOG_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
# 检查root权限
|
# 检查root权限
|
||||||
@@ -66,5 +66,7 @@ log "重载bird服务"
|
|||||||
birdc c
|
birdc c
|
||||||
log "脚本执行完毕"
|
log "脚本执行完毕"
|
||||||
|
|
||||||
|
cat $TARGET_FILE
|
||||||
|
|
||||||
cd
|
cd
|
||||||
rm update.sh
|
rm update.sh
|
||||||
Reference in New Issue
Block a user