From a53b25d30f1938a04441ad06ba0552cbdb49d295 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 20 Jul 2022 11:32:31 +0800 Subject: [PATCH] Delete change_ip.sh --- scripts/change_ip.sh | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 scripts/change_ip.sh diff --git a/scripts/change_ip.sh b/scripts/change_ip.sh deleted file mode 100644 index 04b1303a..00000000 --- a/scripts/change_ip.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -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/$1/.env -else - echo "There is not APP_URL" -fi