practice_code/shell/code/ng_ln.sh
2024-06-11 23:28:58 +08:00

7 lines
130 B
Bash

#!/bin/bash
for file in /etc/nginx/sites-available/*;do
base=$(basename "$file")
ln -s "$file" "/etc/nginx/sites-enabled"
done