diff --git a/salt/kicksecure-minimal/install.sls b/salt/kicksecure-minimal/install.sls index 994cbd3..beecb37 100644 --- a/salt/kicksecure-minimal/install.sls +++ b/salt/kicksecure-minimal/install.sls @@ -11,7 +11,6 @@ https://www.kicksecure.com/wiki/Debian include: - kicksecure-minimal.install-repo - utils.tools.common.update - - sys-cacher.install-client - utils.tools.zsh "{{ slsdotpath }}-installed": diff --git a/salt/utils/tools/common/update.sls b/salt/utils/tools/common/update.sls index ccb732a..86ccf2c 100644 --- a/salt/utils/tools/common/update.sls +++ b/salt/utils/tools/common/update.sls @@ -4,6 +4,12 @@ SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. SPDX-License-Identifier: AGPL-3.0-or-later #} +{% if salt['cmd.retcode']('command -v apt-cacher-ng-repo >/dev/null') == 0 -%} +"common-update-run-apt-cacher-ng-repo": + cmd.run: + - name: apt-cacher-ng-repo +{% endif -%} + "common-updated": pkg.uptodate: - refresh: True