Skip to content

Commit

Permalink
Merge pull request #3 from mozilla-it/SE-1008-repair-repair
Browse files Browse the repository at this point in the history
revert etherpad manage bash script to working state
  • Loading branch information
cmharlow authored Sep 1, 2021
2 parents 58c74ea + 479a49e commit 724a722
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions etherpad-manage.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -euxo pipefail

min_stamp=$(date -d "-15 days" +%s)

count=0
Expand All @@ -13,8 +13,9 @@ for p in $(curl -s --data-urlencode "apikey=$ETHERPAD_API_KEY" "http://localhost
--data-urlencode "apikey=$ETHERPAD_API_KEY" \
--data-urlencode "padID=$p" \
"http://localhost:$PORT/api/1/deletePad"
count = $(( $count + 1 ))
((count++))
fi
done

echo "Identified and deleted $count pads"
echo "Identified $count pads for removal"

0 comments on commit 724a722

Please sign in to comment.