Installs gSpeech inside LibreSchool Project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

# This is a "Signed fix" script.
# Define a fix name.
# Finding domain
domain=$(awk '/search/ { print $2 }' /etc/resolv.conf)
# If already applied, skip
if [[ -f "/var/lib/${domain}/fixes/${name}.done" ]]; then
echo "Already fixed with ${name}. Skipping."
exit 0
# Doing the stuff.
apt-get update
export DEBIAN_FRONTEND=noninteractive
apt-get install -qy --force-yes \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
python-gst0.10 python-gtk2 libttspico-utils python-notify \
gstreamer0.10-plugins-base gstreamer0.10-plugins-good \
gstreamer0.10-pulseaudio python-appindicator sox git
pushd /opt
git clone gSpeech
popd &>/dev/null
install -m 0644 -o root -g root gspeech.desktop /opt/gSpeech/gspeech.desktop
ln -sf /opt/gSpeech/gspeech.desktop /usr/share/applications/gspeech.desktop
# Create flag file for skipping
mkdir -p "/var/lib/${domain}/fixes"
echo "$(date --iso | tr -d '-')" > "/var/lib/${domain}/fixes/${name}.done"