refactor: reorder states to avoid race condition

This commit is contained in:
Ben Grande 2023-12-19 23:06:37 +01:00
parent b4d142b640
commit 71d22c54b6
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ specify otherwise.
- Top - Top
```sh ```sh
qubesctl top.enable sys-cacher browser qubesctl top.enable sys-cacher browser
qubesctl --targets=tpl-browser,tpl-sys-cacher,sys-cacher,sys-cacher-browser state.apply qubesctl --targets=tpl-browser,sys-cacher-browser,tpl-sys-cacher,sys-cacher state.apply
qubesctl top.disable sys-cacher browser qubesctl top.disable sys-cacher browser
qubesctl state.apply sys-cacher.appmenus,sys-cacher.tag qubesctl state.apply sys-cacher.appmenus,sys-cacher.tag
qubesctl --skip-dom0 --templates state.apply sys-cacher.install-client qubesctl --skip-dom0 --templates state.apply sys-cacher.install-client

View File

@ -30,7 +30,7 @@ provider however, don't install this package.
- Top: - Top:
```sh ```sh
qubesctl top.enable sys-pihole browser qubesctl top.enable sys-pihole browser
qubesctl --targets=tpl-browser,sys-pihole,sys-pihole-browser state.apply qubesctl --targets=tpl-browser,sys-pihole-browser,sys-pihole state.apply
qubesctl top.disable sys-pihole browser qubesctl top.disable sys-pihole browser
qubesctl state.apply sys-pihole.appmenus qubesctl state.apply sys-pihole.appmenus
``` ```

View File

@ -26,7 +26,7 @@ accessible externally.
- Top: - Top:
```sh ```sh
qubesctl top.enable sys-syncthing browser qubesctl top.enable sys-syncthing browser
qubesctl --targets=tpl-browser,tpl-sys-syncthing,sys-syncthing,sys-syncthing-browser state.apply qubesctl --targets=tpl-browser,sys-syncthing-browser,tpl-sys-syncthing,sys-syncthing state.apply
qubesctl top.disable sys-syncthing browser qubesctl top.disable sys-syncthing browser
qubesctl state.apply sys-syncthing.appmenus qubesctl state.apply sys-syncthing.appmenus
/srv/salt/qusal/sys-syncthing/files/admin/firewall/in.sh -a -p add sys-syncthing tcp 22000 /srv/salt/qusal/sys-syncthing/files/admin/firewall/in.sh -a -p add sys-syncthing tcp 22000