diff -uNr harbor.orig/install.sh harbor/install.sh --- harbor.orig/install.sh 2023-06-02 11:46:12.000000000 +0000 +++ harbor/install.sh 2023-07-26 18:04:48.666624099 +0000 @@ -19,6 +19,8 @@ with_clair=$false # trivy is not enabled by default with_trivy=$false +# assume no systemd for now +have_systemd=$false # flag to using docker compose v1 or v2, default would using v1 docker-compose DOCKER_COMPOSE=docker-compose @@ -90,7 +92,38 @@ fi echo "" -h2 "[Step $item]: starting Harbor ..." +if [ -d /etc/systemd ] +then + have_systemd=true + h2 "[Step $item]: installing Harbor systemd service ..."; let item+=1 + + cat >/etc/systemd/system/harbor.service <