Skip to content

Commit

Permalink
Fix bugs in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MTecknology committed Feb 18, 2024
1 parent a3df3a1 commit 58e708b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions states/nginx/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ nginx:
file.managed:
- name: /etc/nginx/nginx.conf
- source: salt://nginx/nginx.conf
- template: jinja
- watch_in:
- service: nginx

Expand Down
9 changes: 6 additions & 3 deletions states/webapps/soberpage.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ include:
soberpage:
git.latest:
- name: https://danwin1210.de:1443/recoverysource/sober.page
- target: /srv/soberpage
- target: /srv/webapps/soberpage
- force_checkout: True
- require:
- file: /srv/webapps
file.managed:
- name: /etc/nginx/conf.d/soberpage.conf
- source: salt://webapps/nginx-cfg/soberpage.conf
Expand All @@ -14,15 +16,16 @@ soberpage:
- watch_in:
- service: nginx
cmd.run:
- name: /srv/soberpage/sync.py -n
- name: /srv/webapps/soberpage/sync -n
- require:
- pkg: nginx
- git: soberpage
- watch:
- git: soberpage
- watch_in:
- service: nginx
cron.present:
- name: "/srv/soberpage/sync.py -n && service nginx reload"
- name: "/srv/webapps/soberpage/sync -n && service nginx reload"
- identifier: soberpge
- minute: 30
- hour: 0
Expand Down

0 comments on commit 58e708b

Please sign in to comment.