mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-12-04 05:20:35 +00:00
Update install.yml
This commit is contained in:
parent
0cf6192614
commit
65cc87a4b2
1 changed files with 7 additions and 2 deletions
|
@ -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: |
|
||||
|
|
Loading…
Reference in a new issue