Create sogouscelupdate.sh

This commit is contained in:
gshang2017
2020-04-25 15:36:09 +08:00
committed by GitHub
parent 64e1220534
commit 49dc208865

View File

@ -0,0 +1,13 @@
#! /usr/bin/with-contenv bash
#设定sogouscelupdate更新任务
if [ `grep -c sogouscelupdate.py /var/spool/cron/crontabs/root` -eq 0 ];then
echo "0 */8 * * * python3 /usr/local/sogouscelupdate/sogouscelupdate.py" >> /var/spool/cron/crontabs/root
echo sogouscelupdate更新任务已设定。
else
echo sogouscelupdate更新任务已存在。
fi
#设置时区
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
echo $TZ > /etc/timezone