[*] 兼容action测试
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5m59s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5m59s
This commit is contained in:
parent
33b6b3013a
commit
1d36cdba41
@ -6,5 +6,7 @@ jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-apt.sh | bash
|
||||
- run: curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-docker.sh | bash
|
||||
- name: test apt
|
||||
run: curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-apt.sh | bash
|
||||
- name: test docker
|
||||
run: curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-docker.sh | bash
|
@ -38,4 +38,8 @@ server ntp5.aliyun.com iburst
|
||||
driftfile /var/lib/chrony/drift
|
||||
allow 127.0.0.1
|
||||
EOF
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl restart chrony && systemctl enable chrony
|
||||
else
|
||||
echo "systemctl 不存在,跳过 chrony 的重启"
|
||||
fi
|
@ -21,4 +21,8 @@ cat > /etc/docker/daemon.json <<EOF
|
||||
}
|
||||
EOF
|
||||
|
||||
sudo systemctl restart docker
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl restart docker
|
||||
else
|
||||
echo "systemctl 不存在,跳过 docker 重启。"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user