mirror of
https://github.com/gshang2017/docker.git
synced 2025-07-21 23:46:20 +00:00
Create sogouscelupdate.sh
This commit is contained in:
13
rime-sogou/root/etc/cont-init.d/sogouscelupdate.sh
Normal file
13
rime-sogou/root/etc/cont-init.d/sogouscelupdate.sh
Normal 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
|
Reference in New Issue
Block a user