Correct email To
This commit is contained in:
parent
a575dc64c1
commit
365464c342
3
ghost.sh
3
ghost.sh
|
@ -53,8 +53,7 @@ PLAINTEXT=$(curl -s -b ghost-cookie.txt -H "Origin: https://${GHOST_WEBSITE}" "h
|
|||
info "Getting email"
|
||||
for member in $(curl -s -b ghost-cookie.txt -H "Origin: https://${GHOST_WEBSITE}" "https://${GHOST_WEBSITE}/ghost/api/v3/admin/members/?limit=all" | jq --raw-output ".members[] | @base64")
|
||||
do
|
||||
#email=$(echo ${member} | base64 --decode | jq --raw-output '.email')
|
||||
email="contact@dryusdan.fr"
|
||||
email=$(echo ${member} | base64 --decode | jq --raw-output '.email')
|
||||
uuid=$(echo ${member} | base64 --decode | jq --raw-output '.uuid')
|
||||
HTML=$(echo ${HTML} | sed "s/preview=1/uuid=${uuid}/g")
|
||||
if [ $(echo ${member} | base64 --decode | jq --raw-output '.subscribed') == true ]
|
||||
|
|
Loading…
Reference in New Issue