Skip to content

Commit

Permalink
site list improved
Browse files Browse the repository at this point in the history
Now list include parked and reverse proxy sites.
  • Loading branch information
QROkes committed Nov 2, 2018
1 parent 43e0f82 commit 5869e4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/site
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ fi
# List Sites
if [[ "$domain" == "-list" && -z "$type" && -z "$cache" ]]; then
echo ""
for site in "/var/www"/*
for site in "/etc/nginx/sites-available"/*
do
domi=$(echo $site | cut -f 4 -d "/")
[[ $domi != "html" && $domi != $(conf_read tools-port) ]] && echo "${gre} - $domi ${end}"
domi=$(echo $site | cut -f 5 -d "/")
[[ -a /var/www/$domi ]] && sign="${gre} -" || sign="${blu} *${gre}"
[[ $domi != "default" && $domi != $(conf_read tools-port) ]] && echo "$sign $domi ${end}"
done
echo ""

Expand Down

0 comments on commit 5869e4e

Please sign in to comment.