Explorar o código

Delete change_ip.sh

qiaofeng1227 %!s(int64=3) %!d(string=hai) anos
pai
achega
a53b25d30f
Modificáronse 1 ficheiros con 0 adicións e 10 borrados
  1. 0 10
      scripts/change_ip.sh

+ 0 - 10
scripts/change_ip.sh

@@ -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