mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 15:25:53 +00:00
Update maxun-install.sh
This commit is contained in:
@@ -160,12 +160,11 @@ EOF
|
|||||||
|
|
||||||
cat <<EOF >/usr/local/bin/update-env-ip.sh
|
cat <<EOF >/usr/local/bin/update-env-ip.sh
|
||||||
env_file="/opt/maxun/.env"
|
env_file="/opt/maxun/.env"
|
||||||
ip=$(hostname -I | awk '{print $1}')
|
|
||||||
|
|
||||||
sed -i "s|^BACKEND_URL=.*|BACKEND_URL=http://${ip}:8080|" "$env_file"
|
sed -i "s|^BACKEND_URL=.*|BACKEND_URL=http://${LOCAL_IP}:8080|" "$env_file"
|
||||||
sed -i "s|^PUBLIC_URL=.*|PUBLIC_URL=http://${ip}:5173|" "$env_file"
|
sed -i "s|^PUBLIC_URL=.*|PUBLIC_URL=http://${LOCAL_IP}:5173|" "$env_file"
|
||||||
sed -i "s|^VITE_BACKEND_URL=.*|VITE_BACKEND_URL=http://${ip}:8080|" "$env_file"
|
sed -i "s|^VITE_BACKEND_URL=.*|VITE_BACKEND_URL=http://${LOCAL_IP}:8080|" "$env_file"
|
||||||
sed -i "s|^VITE_PUBLIC_URL=.*|VITE_PUBLIC_URL=http://${ip}:5173|" "$env_file"
|
sed -i "s|^VITE_PUBLIC_URL=.*|VITE_PUBLIC_URL=http://${LOCAL_IP}:5173|" "$env_file"
|
||||||
EOF
|
EOF
|
||||||
chmod +x /usr/local/bin/update-env-ip.sh
|
chmod +x /usr/local/bin/update-env-ip.sh
|
||||||
cd /opt/maxun
|
cd /opt/maxun
|
||||||
|
|||||||
Reference in New Issue
Block a user