Update install.yml

This commit is contained in:
qiaofeng1227 2022-09-02 16:44:06 +08:00 committed by GitHub
parent 029017bd77
commit 64b83de68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,8 @@
- name: Change Public IP for http_url if APP_URL_REPLACE=true
shell: |
public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
sudo sed -i "s/APP_URL=.*/APP_URL=$public_ip/g" /data/apps/{{app}}/.env
urlstr=`grep "APP_URL=" .env |cut -d":" -f1`
sudo sed -i "s/$urlstr/APP_URL=$public_ip/g" /data/apps/{{app}}/.env
when: http_url_exists.stdout != ""
- name: Excute Preparation if have pre.yml