forked from cosmic/cosmic
ignore log dir
This commit is contained in:
parent
5d5f0ac93b
commit
d51e5d8607
|
@ -11,7 +11,7 @@ trap finish EXIT
|
|||
temp_roster=$(mktemp -t "$(basename "$0").roster.XXXXXXX") || exit 1
|
||||
|
||||
# find all ship folders
|
||||
find "/var/gopher/" -maxdepth 1 ! -path "/var/gopher/" ! -path "/var/gopher/ships" -type d | while read -r shipdir
|
||||
find "/var/gopher/" -maxdepth 1 ! -path "/var/gopher/" ! -path "/var/gopher/ships" ! -path "/var/gopher/log" -type d | while read -r shipdir
|
||||
do
|
||||
owner=$(stat -c %U "$shipdir")
|
||||
printf "%s|%s\\n" "$owner" "$(basename "$shipdir")" >> "$temp_roster"
|
||||
|
|
|
@ -73,7 +73,7 @@ if [ "$run_user" -eq 0 ]; then
|
|||
fi
|
||||
} >> "${ships_html}"
|
||||
# Add header info to html output
|
||||
find "/var/gopher/" -maxdepth 1 ! -path "/var/gopher/" ! -path "/var/gopher/ships" -type d -print | sed 's|/var/gopher/||' | sort | while read -r ship
|
||||
find "/var/gopher/" -maxdepth 1 ! -path "/var/gopher/" ! -path "/var/gopher/ships" ! -path "/var/gopher/log" -type d -print | sed 's|/var/gopher/||' | sort | while read -r ship
|
||||
do
|
||||
printf "<a href=\"/ships/%s/\">🢒 %s</a>\\n" "$ship" "$ship" >> "$ships_html"
|
||||
# Create individual ship log page
|
||||
|
@ -105,7 +105,7 @@ if [ "$run_user" -eq 0 ]; then
|
|||
{
|
||||
printf "</div>\\n"
|
||||
printf "</body>\\n"
|
||||
printf "</html>n"
|
||||
printf "</html>"
|
||||
} >> "${ships_html}"
|
||||
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue