This commit is contained in:
HuYingTran 2025-11-14 13:30:03 +07:00
parent 1b9e7ead72
commit 836f202e5a

View file

@ -97,8 +97,8 @@ CONFIG_FILE="$DATA_DIR/.config.yaml"
if [ -n "$SECRET_KEY" ]; then if [ -n "$SECRET_KEY" ]; then
echo "🔑 Checking if pyyaml is installed..." echo "🔑 Checking if pyyaml is installed..."
if ! python3 -c "import yaml" >/dev/null 2>&1; then if ! python3 -c "import yaml" >/dev/null 2>&1; then
echo "⚠️ Module pyyaml not found. Installing now..." echo "⚠️ Module pyyaml not found. Installing with apt..."
python3 -m pip install --user pyyaml sudo apt-get install -y python3-yaml
else else
echo "✅ pyyaml is already installed." echo "✅ pyyaml is already installed."
fi fi