mirror of
https://github.com/edu4rdshl/nspawn-utils.git
synced 2026-07-18 07:34:46 +00:00
Update
This commit is contained in:
parent
afdb42535d
commit
3469a30bcf
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ elif [ "$1" == "website" ]; then
|
|||
git pull
|
||||
sed -i -e '/Linux Distribution/,$d' /var/www/html/nspawn.org/content/images.md
|
||||
cd /var/www/html/storage/
|
||||
find -maxdepth 3 -not -path '*/\.*' -not -empty -print |sort|cut -c 3- |tr '/' ' ' |awk 'NF == 3' |tr ' ' '/' | awk -F/ 'BEGIN {printf("| %13s | %10s | %25s | %20s |\n%13s | %10s | %25s | %20s |\n" ,"**Linux Distribution**", "**Version**", "**Init Command**", "**Download Link**", "--------------", "------------", "---------------------------", "--------------------")} {printf "| %13s | %10s | nspawn -i %s/%s/%s | [%s-%s](/storage/%s/%s/%s/image.%s.xz)|\n", toupper(substr($1,1,1))substr($1,2), $2, $1, $2, $3, $1, $3, $1, $2, $3, $3}' >> /var/www/html/nspawn.org/content/images.md
|
||||
find -maxdepth 3 -not -path '*/\.*' -not -empty -print |sort|cut -c 3- |tr '/' ' ' |awk 'NF == 3' |tr ' ' '/' | awk -F/ 'BEGIN {printf("|%s|%s|%s|%s|%s|\n|%s|%s|%s|%s|%s|\n" ,"Linux Distribution", "Distribution Version", "Image Type", "Nspawn Init Command", "Download Link", "-------------", "---------", "---------", "-------------", "------------")} {printf "|%s|%s|%s|nspawn -i %s/%s/%s|[%s-%s](/storage/%s/%s/%s/image.%s.xz)|\n", toupper(substr($1,1,1))substr($1,2), $2, $3, $1, $2, $3, $1, $3, $1, $2, $3, $3}' >> /var/www/html/nspawn.org/content/images.md
|
||||
cd /var/www/html/nspawn.org/
|
||||
hugo -D
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue