From 1a1f659c8acc766444b565b0fb7adcf815915294 Mon Sep 17 00:00:00 2001 From: setop Date: Tue, 23 Jul 2024 21:11:31 +0200 Subject: [PATCH] feat: add upload catalog html page --- cmd.txt | 2 +- upload.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 upload.sh diff --git a/cmd.txt b/cmd.txt index 5b52f80..443ef22 100644 --- a/cmd.txt +++ b/cmd.txt @@ -3,4 +3,4 @@ jinja2 catalog.html.j2 catalog.yaml >| cliget.html brotli -f -q 11 -S br cliget.html - +./upload.sh diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..673e470 --- /dev/null +++ b/upload.sh @@ -0,0 +1,11 @@ +#!/bin/sh -eu + +ftp -i -n $FTP_HOST << EEE +quote USER $FTP_USER +quote PASS $FTP_PASS +binary +cd www +mput cliget.htmlbr +quit +EEE +