mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 09:48:38 +08:00
Update install.yml
This commit is contained in:
parent
0cf6192614
commit
65cc87a4b2
@ -15,11 +15,16 @@
|
|||||||
- name: Clone app from libray
|
- name: Clone app from libray
|
||||||
shell: cp -r "{{installpath}}/library/apps/{{app}}" "{{installpath}}"
|
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: |
|
shell: |
|
||||||
cat "{{installpath}}/library/apps/{{appname}}/.env" |grep APP_HTTP_PORT >> /tmp/port.txt
|
cat "{{installpath}}/library/apps/{{appname}}/.env" |grep APP_HTTP_PORT >> /tmp/port.txt
|
||||||
sed -i "s/APP_HTTP_PORT=//g" /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
|
- name: Check APP_URL_REPLACE exists
|
||||||
shell: |
|
shell: |
|
||||||
|
Loading…
Reference in New Issue
Block a user