mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
Update change_ip.sh
This commit is contained in:
parent
6b2a1f59ab
commit
52eacfabcb
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ app_url_replace=$(cat /data/apps/$1/.env |grep APP_URL_REPLACE)
|
|||
if [ $app_url_replace == "APP_URL_REPLACE=true" ]; then
|
||||
echo "Change APP_URL"
|
||||
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_name}}/.env
|
||||
sudo sed -i "s/APP_URL=.*/APP_URL=$public_ip/g" /data/apps/$1/.env
|
||||
else
|
||||
echo "There is not APP_URL"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue