Update main.yml

This commit is contained in:
qiaofeng1227 2022-05-11 13:56:23 +08:00 committed by GitHub
parent 8c294bde27
commit 350d5334fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,2 +1,7 @@
- name: Check Discuzq Version
- name: Check {{appname}} Version
shell: sudo echo "DiscuzQ version $(docker exec -it discuzq bash -c 'grep -rn "const VERSION =" /var/www/discuz/vendor/discuz/core/src/Foundation/Application.php | awk "{print \$5}" | tr -d ";"')" 1>> /data/logs/install_version.txt
- name: Check {{appname}} Service
shell: docker ps
register: check_{{appname}}_service
notify: check_{{appname}}_service