mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
fix yaml
This commit is contained in:
parent
1b9e7ead72
commit
836f202e5a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue