mirror of
https://github.com/unman/shaker.git
synced 2024-10-01 01:25:41 -04:00
Syncthing - Clean up on package removal
This commit is contained in:
parent
2e09546473
commit
84292d28fd
12
syncthing/cancel.sls
Normal file
12
syncthing/cancel.sls
Normal file
@ -0,0 +1,12 @@
|
||||
/rw/config/rc.local:
|
||||
file.replace:
|
||||
- pattern: 'systemctl.*unmask.*syncthing@user.service'
|
||||
- repl - ''
|
||||
- backup: False
|
||||
|
||||
/rw/config/rc.local_2:
|
||||
file.replace:
|
||||
- pattern: 'systemctl.*start.*syncthing@user.service''
|
||||
- repl - ''
|
||||
- backup: False
|
||||
|
3
syncthing/cancel.top
Normal file
3
syncthing/cancel.top
Normal file
@ -0,0 +1,3 @@
|
||||
base:
|
||||
syncthing:
|
||||
- syncthing.configure
|
22
syncthing/clean.sls
Normal file
22
syncthing/clean.sls
Normal file
@ -0,0 +1,22 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
syncthing_down:
|
||||
qvm.shutdown:
|
||||
- name: syncthing
|
||||
- flags:
|
||||
- force
|
||||
|
||||
syncthing_revert_policy:
|
||||
file.replace:
|
||||
- name: /etc/qubes/policy.d/30-user.policy
|
||||
- pattern: 'qubes.Syncthing.*'
|
||||
- repl: ''
|
||||
|
||||
syncthing_default_policy:
|
||||
file.prepend:
|
||||
- name: /etc/qubes/policy.d/30-user.policy
|
||||
- text: 'qubes.Syncthing * @anyvm @anyvm deny'
|
||||
- makedirs: True
|
Loading…
Reference in New Issue
Block a user