ajout d'un swtich pour repercuter en cas de coupure des post sur le site
This commit is contained in:
parent
41e96eef6a
commit
beecdac997
@ -33,6 +33,10 @@ cd "${DOSSIER_GLOBAL}"
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
# Utilisation universelle
|
# Utilisation universelle
|
||||||
|
autopost_json=$(curl -sf https://unfr.pw/autopost.status.json)
|
||||||
|
autopost_file=$(echo "$autopost_json" | jq -r '.autopost')
|
||||||
|
|
||||||
|
if [[ "$autopost_file" == "0" ]]; then
|
||||||
verif=$(db_query "SELECT id, nom FROM \`release\` WHERE status = 0 LIMIT 1;")
|
verif=$(db_query "SELECT id, nom FROM \`release\` WHERE status = 0 LIMIT 1;")
|
||||||
if [ -n "$verif" ]; then
|
if [ -n "$verif" ]; then
|
||||||
id=$(echo "$verif" | awk -F "|" '{print $1}' | xargs)
|
id=$(echo "$verif" | awk -F "|" '{print $1}' | xargs)
|
||||||
@ -95,5 +99,8 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
} > >(tee -a "$LOG") 2>&1
|
} > >(tee -a "$LOG") 2>&1
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo -e "${ROUGE}PROBLEME DE PROPAGATION POST EN PAUSE${NORMAL}"
|
||||||
|
fi
|
||||||
attente 3
|
attente 3
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user