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-11 11:08:50 +03:00

13 lines
377 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")
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