mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
Update install.yml
This commit is contained in:
parent
75ddadfc6b
commit
bc30344e2d
@ -24,7 +24,7 @@
|
|||||||
- name: Change Public IP for http_url if APP_URL_REPLACE=true
|
- name: Change Public IP for http_url if APP_URL_REPLACE=true
|
||||||
shell: |
|
shell: |
|
||||||
public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
|
public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
|
||||||
urlstr=`grep "APP_URL=" .env |cut -d":" -f1`
|
urlstr=`grep "APP_URL=" /data/apps/{{app}}/.env |cut -d":" -f1`
|
||||||
sudo sed -i "s/$urlstr/APP_URL=$public_ip/g" /data/apps/{{app}}/.env
|
sudo sed -i "s/$urlstr/APP_URL=$public_ip/g" /data/apps/{{app}}/.env
|
||||||
when: http_url_exists.stdout != ""
|
when: http_url_exists.stdout != ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user