From eb8e9c0b9af7485a69dfb17f2fcb0c6b46d8079c Mon Sep 17 00:00:00 2001 From: lsy2246 Date: Tue, 11 Jun 2024 23:28:58 +0800 Subject: [PATCH] =?UTF-8?q?nginx=E5=BF=AB=E9=80=9F=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E8=BD=AF=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/code/ng_ln.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 shell/code/ng_ln.sh diff --git a/shell/code/ng_ln.sh b/shell/code/ng_ln.sh new file mode 100644 index 0000000..cbda5b5 --- /dev/null +++ b/shell/code/ng_ln.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +for file in /etc/nginx/sites-available/*;do + base=$(basename "$file") + ln -s "$file" "/etc/nginx/sites-enabled" +done