浏览代码

remove devture services

pull/2531/head
array-in-a-matrix 3 年前
父节点
当前提交
c3900aaf1b
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      roles/custom/matrix-base/templates/bin/remove-all.j2

+ 7
- 0
roles/custom/matrix-base/templates/bin/remove-all.j2 查看文件

@@ -21,6 +21,13 @@ else
rm -f {{ devture_systemd_docker_base_systemd_path }}/$s
done

echo "Stop and remove devture services"

for s in $(find {{ devture_systemd_docker_base_systemd_path }}/ -type f -name "devture-*" -printf "%f\n"); do
systemctl disable --now $s
rm -f {{ devture_systemd_docker_base_systemd_path }}/$s
done

systemctl daemon-reload

echo "Remove unused Docker images and resources"


正在加载...
取消
保存