mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
made ccash use crontab to start it on boot
This commit is contained in:
parent
8696c5d870
commit
ce65a4387c
2 changed files with 9 additions and 1 deletions
|
|
@ -186,6 +186,13 @@
|
||||||
cmd: |
|
cmd: |
|
||||||
pm2 startup
|
pm2 startup
|
||||||
when: START_ON_BOOT == true and START_SERVICES == true and WEB_ENABLED == true
|
when: START_ON_BOOT == true and START_SERVICES == true and WEB_ENABLED == true
|
||||||
|
- name: enable ccash on boot
|
||||||
|
ansible.builtin.cron:
|
||||||
|
name: CCash enable on boot
|
||||||
|
special_time: reboot
|
||||||
|
state: present
|
||||||
|
job: '{{ BUILD_DIR }}/CCash/build/bank {{ ADMIN_A }} {{ SAVE_FREQ }} true'
|
||||||
|
when: START_ON_BOOT == true
|
||||||
|
|
||||||
- name: allow firewalld ports
|
- name: allow firewalld ports
|
||||||
ansible.posix.firewalld:
|
ansible.posix.firewalld:
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,5 @@ USE_DEPRECATED_ENDPOINTS: "true"
|
||||||
WEB_ENABLED: true
|
WEB_ENABLED: true
|
||||||
WEB_PORT: "3000"
|
WEB_PORT: "3000"
|
||||||
START_SERVICES: true
|
START_SERVICES: true
|
||||||
BRANCH: "v2"
|
START_ON_BOOT: true
|
||||||
|
BRANCH: "v2.5.1"
|
||||||
Loading…
Reference in a new issue