1
0
Fork 0
dotfiles/home/run_onchange_units.sh.tmpl

10 lines
236 B
Bash

#!/bin/bash
sudo systemctl daemon-reload
{{ range .units.system -}}
sudo systemctl enable --now {{ . }} || true
{{ end -}}
systemctl --user daemon-reload
{{ range .units.user -}}
systemctl --user enable --now {{ . }} || true
{{ end -}}