chore: Update manifests after change

This commit is contained in:
2025-12-20 06:39:44 +00:00
parent b8d9a7988e
commit 2e1bcf63ff
3 changed files with 6 additions and 22 deletions

View File

@@ -18,35 +18,30 @@ data:
echo " " echo " "
echo ">> Verifying required commands ..." echo ">> Verifying required commands ..."
echo " "
for i in $(seq 1 "$MAX_RETRIES"); do for i in $(seq 1 "$MAX_RETRIES"); do
if apk update 2>&1 >/dev/null; then if apk update 2>&1 >/dev/null; then
echo " "
echo ">> Attempt $i: Repositories are reachable" echo ">> Attempt $i: Repositories are reachable"
SUCCESS=true SUCCESS=true
break break
else else
echo " "
echo ">> Attempt $i: Connection failed, retrying in 5 seconds ..." echo ">> Attempt $i: Connection failed, retrying in 5 seconds ..."
sleep 5 sleep 5
fi fi
done done
if [ "$SUCCESS" = false ]; then if [ "$SUCCESS" = false ]; then
echo " "
echo ">> ERROR: Could not connect to apk repositories after $MAX_RETRIES attempts, exiting ..." echo ">> ERROR: Could not connect to apk repositories after $MAX_RETRIES attempts, exiting ..."
exit 1 exit 1
fi fi
if ! command -v curl 2>&1 >/dev/null; then if ! command -v curl 2>&1 >/dev/null; then
echo " "
echo ">> Command curl could not be found, installing"; echo ">> Command curl could not be found, installing";
apk add --no-cache -q curl; apk add --no-cache -q curl;
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo " "
echo ">> Installation successful" echo ">> Installation successful"
else else
echo " "
echo ">> Installation failed with exit code $?" echo ">> Installation failed with exit code $?"
exit 1 exit 1
fi fi

View File

@@ -40,42 +40,34 @@ data:
for i in $(seq 1 "$MAX_RETRIES"); do for i in $(seq 1 "$MAX_RETRIES"); do
if apk update 2>&1 >/dev/null; then if apk update 2>&1 >/dev/null; then
echo " "
echo ">> Attempt $i: Repositories are reachable"; echo ">> Attempt $i: Repositories are reachable";
SUCCESS=true; SUCCESS=true;
break; break;
else else
echo " "
echo ">> Attempt $i: Connection failed, retrying in 5 seconds ..."; echo ">> Attempt $i: Connection failed, retrying in 5 seconds ...";
sleep 5; sleep 5;
fi; fi;
done; done;
if [ "$SUCCESS" = false ]; then if [ "$SUCCESS" = false ]; then
echo " "
echo ">> ERROR: Could not connect to apk repositories after $MAX_RETRIES attempts, exiting ..."; echo ">> ERROR: Could not connect to apk repositories after $MAX_RETRIES attempts, exiting ...";
exit 1; exit 1;
fi fi
if ! command -v curl 2>&1 >/dev/null; then if ! command -v curl 2>&1 >/dev/null; then
echo " "
echo ">> Command curl could not be found, installing"; echo ">> Command curl could not be found, installing";
apk add --no-cache -q curl; apk add --no-cache -q curl;
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo " "
echo ">> Installation successful"; echo ">> Installation successful";
else else
echo " "
echo ">> Installation failed with exit code $?"; echo ">> Installation failed with exit code $?";
exit 1; exit 1;
fi; fi;
fi; fi;
echo " "
echo ">> Message: $MESSAGE"
echo " " echo " "
echo ">> Sending to NTFY ..." echo ">> Sending to NTFY ..."
echo ">> Message: $MESSAGE"
HTTP_STATUS=$(curl \ HTTP_STATUS=$(curl \
--silent \ --silent \
--write-out '%{http_code}' \ --write-out '%{http_code}' \

View File

@@ -18,42 +18,39 @@ data:
echo " " echo " "
echo ">> Verifying required commands ..." echo ">> Verifying required commands ..."
echo " "
for i in $(seq 1 "$MAX_RETRIES"); do for i in $(seq 1 "$MAX_RETRIES"); do
if apk update 2>&1 >/dev/null; then if apk update 2>&1 >/dev/null; then
echo " "
echo ">> Attempt $i: Repositories are reachable"; echo ">> Attempt $i: Repositories are reachable";
SUCCESS=true; SUCCESS=true;
break; break;
else else
echo " "
echo ">> Attempt $i: Connection failed, retrying in 5 seconds ..."; echo ">> Attempt $i: Connection failed, retrying in 5 seconds ...";
sleep 5; sleep 5;
fi; fi;
done; done;
if [ "$SUCCESS" = false ]; then if [ "$SUCCESS" = false ]; then
echo " "
echo ">> ERROR: Could not connect to apk repositories after $MAX_RETRIES attempts, exiting ..."; echo ">> ERROR: Could not connect to apk repositories after $MAX_RETRIES attempts, exiting ...";
exit 1; exit 1;
fi fi
if ! command -v jq 2>&1 >/dev/null; then
echo " " echo " "
if ! command -v jq 2>&1 >/dev/null; then
echo ">> Command jq could not be found, installing"; echo ">> Command jq could not be found, installing";
apk add --no-cache -q jq; apk add --no-cache -q jq;
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo " "
echo ">> Installation successful"; echo ">> Installation successful";
else else
echo " "
echo ">> Installation failed with exit code $?"; echo ">> Installation failed with exit code $?";
exit 1; exit 1;
fi; fi;
fi; fi;
echo " "; echo " ";
echo ">> Fetching Vault token"; echo ">> Fetching Vault token ...";
export VAULT_TOKEN=$(vault write auth/approle/login role_id=$VAULT_APPROLE_ROLE_ID secret_id=$VAULT_APPROLE_SECRET_ID -format=json | jq -r .auth.client_token); export VAULT_TOKEN=$(vault write auth/approle/login role_id=$VAULT_APPROLE_ROLE_ID secret_id=$VAULT_APPROLE_SECRET_ID -format=json | jq -r .auth.client_token);
echo " "; echo " ";