aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/run_onchange_after_deploy-firefox.sh.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'run_onchange_after_deploy-firefox.sh.tmpl')
-rwxr-xr-xrun_onchange_after_deploy-firefox.sh.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/run_onchange_after_deploy-firefox.sh.tmpl b/run_onchange_after_deploy-firefox.sh.tmpl
index c9e49be..a9c3a1d 100755
--- a/run_onchange_after_deploy-firefox.sh.tmpl
+++ b/run_onchange_after_deploy-firefox.sh.tmpl
@@ -1,3 +1,5 @@
+{{- $machineRole := default "host" (index . "machineRole") -}}
+{{- if eq $machineRole "host" -}}
#!/usr/bin/env dash
# Deploy Firefox/LibreWolf hardening and custom CSS.
# chezmoi re-runs this script whenever any file under firefox/ or the nix
@@ -36,3 +38,9 @@ find firefox -type f | while IFS= read -r src; do
mkdir -p "$(dirname "$dest")"
cp --remove-destination "$src" "$dest"
done
+{{- else -}}
+#!/usr/bin/env dash
+# Firefox/LibreWolf hardening is host-only.
+set -eu
+exit 0
+{{- end }}