mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-29 22:20:43 +00:00
feat: split building process by several scripts
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
d3d3187e51
commit
4117509927
6 changed files with 179 additions and 28 deletions
20
scripts/ffmpeg.sh
Normal file
20
scripts/ffmpeg.sh
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
#-------------------------------------------------------------------------------------------------------------
|
||||
# Syntax: ./ffmpeg.sh [upgrade packages flag]
|
||||
|
||||
set -e
|
||||
|
||||
FFMPEG=${1:-"false"}
|
||||
|
||||
# Ensure apt is in non-interactive to avoid prompts
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install ffmpeg
|
||||
if [ "${FFMPEG}" = "true" ] && ! dpkg -s ffmpeg > /dev/null 2>&1; then
|
||||
if [ ! -d "/var/lib/apt/lists" ] || [ "$(ls /var/lib/apt/lists/ | wc -l)" = "0" ]; then
|
||||
apt-get update
|
||||
fi
|
||||
apt-get -y install --no-install-recommends ffmpeg
|
||||
fi
|
||||
|
||||
echo "Done!"
|
Loading…
Add table
Add a link
Reference in a new issue