maint script

This commit is contained in:
Q
2023-08-19 12:28:58 +03:00
parent aa6a1d2373
commit bdacb80c43
4 changed files with 60 additions and 32 deletions

View File

@@ -148,3 +148,20 @@ if true; then
-H "Secret: dff789f0bbe8183d3254258b33a147d580c1131f39a698c56d3f640ac8415714" \
"$ROOTURL"/ls
fi
if true; then
pv "$SMALL" | \
curl -fL -w "\n" -F file="@-" -X POST \
-H "Name: $SMALL" \
-H "Max-Downloads: 4000" \
-H "Expires-Days: -5" \
-H "Secret: dff789f0bbe8183d3254258b33a147d580c1131f39a698c56d3f640ac8415714" \
"$ROOTURL"/upload
curl -fL -w "\n" \
-H "Secret: dff789f0bbe8183d3254258b33a147d580c1131f39a698c56d3f640ac8415714" \
"$ROOTURL"/maintenance
fi