mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-11-06 20:05:41 +00:00
Sets how often to save ZNC config file
This commit is contained in:
1 parent
5d7d221fd1
commit
d41a223285
2 files changed
+14
No files matched your search
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/dash
|
||||||
|
|
||||||
|
PID=$(pgrep -u znc znc)
|
||||||
|
|
||||||
|
#Rewrite znc.conf
|
||||||
|
[ $PID ] && kill -s USR1 $PID
|
||||||
@@ -56,3 +56,11 @@
|
|||||||
allow spoof_all
|
allow spoof_all
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- name: Rewrite znc.conf
|
||||||
|
copy:
|
||||||
|
src: ../files/etc/cron.hourly/znc_saveconfig.sh
|
||||||
|
dest: /etc/cron.hourly/znc_saveconfig.sh
|
||||||
|
owner: root
|
||||||
|
group: znc
|
||||||
|
mode: 0754
|
||||||
Reference in new issue
Block a user