Update install.yml

This commit is contained in:
qiaofeng1227 2022-12-08 14:12:42 +08:00 committed by GitHub
parent 0cf6192614
commit 65cc87a4b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,11 +15,16 @@
- name: Clone app from libray
shell: cp -r "{{installpath}}/library/apps/{{app}}" "{{installpath}}"
- name: Input mainapp port
- name: Check port file exists
stat:
path: /tmp/port.txt
register: port
- name: Input {{appname}} port
shell: |
cat "{{installpath}}/library/apps/{{appname}}/.env" |grep APP_HTTP_PORT >> /tmp/port.txt
sed -i "s/APP_HTTP_PORT=//g" /tmp/port.txt
when: $(! -s /tmp/port.txt)
when: port.stat.exists == False
- name: Check APP_URL_REPLACE exists
shell: |