This repository has been archived on 2026-07-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Telegram-bot-schedule/app/install.sh
T
2025-02-12 00:10:07 +03:00

15 lines
390 B
Bash

#!/bin/bash
# List of environment variables to check
env_vars=("TG_ADMIN_ID" "TG_API_TOKEN" "DB_HOST" "DB_PORT" "DB_USER" "DB_PASSWORD" "DB_NAME" "TABLE_ID")
for var in "${env_vars[@]}"; do
if [ -z "${!var}" ]; then
echo "Environment variable $var is not set or is empty."
exit 1
# else
# echo "Environment variable $var is set to '${!var}'."
fi
done