From e9a308725caf7c874f0c53cd60690bcc1d5ba48c Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Tue, 24 Oct 2017 20:50:43 +0200 Subject: [PATCH] Latest changes: forcing pulseaudio via signed-fixes. --- domain.yml | 1 + .../pulseaudio-forced-fix_20170921.sh | 26 ++++++++++++++++++ .../pulseaudio-forced-fix_20170921.sh.gpg | Bin 0 -> 1128 bytes 3 files changed, 27 insertions(+) create mode 100644 signed_fixes/pulseaudio-forced-fix_20170921.sh create mode 100644 signed_fixes/pulseaudio-forced-fix_20170921.sh.gpg diff --git a/domain.yml b/domain.yml index 59dbd99..8324270 100644 --- a/domain.yml +++ b/domain.yml @@ -31,3 +31,4 @@ client_gitbranch: liceo.svbg #client_gitrepo: "https://github.com/bglug-it/client-pull-installation.git" apply_fixes: - samba-downgrade_20161124.sh.gpg + - pulseaudio-forced-fix_20170921.sh.gpg diff --git a/signed_fixes/pulseaudio-forced-fix_20170921.sh b/signed_fixes/pulseaudio-forced-fix_20170921.sh new file mode 100644 index 0000000..ec5ab10 --- /dev/null +++ b/signed_fixes/pulseaudio-forced-fix_20170921.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Define a fix name. This will be used to check if the fix was already +# applied. +name=pulseaudio-force-fix_20170921.sh + +# If already applied, skip +if [[ -f "/var/lib/liceo.svbg/fixes/${name}.done" ]]; then + echo "Already fixed with ${name}. Skipping." + exit 0 +fi + +# Make the required modifications. + +# Executing the pulseaudio fix for the first time. +curl -sSL http://pdc.liceo.svbg/ks/preseed/pulseaudio-perms.sh | bash + +# Creating entry in crontab to be executed each time +echo '@reboot root curl -sSL http://pdc.liceo.svbg/ks/preseed/pulseaudio-perms.sh | bash > /dev/null 2>&1' > /etc/cron.d/pulseaudio-perms +chown root:root /etc/cron.d/pulseaudio-perms +chmod 644 /etc/cron.d/pulseaudio-perms + +# Once modified the system, ensure to create a check file to skip and not run +# it again if not needed. +mkdir -p /var/lib/liceo.svbg/fixes +echo "$(date --iso | tr -d '-')" > /var/lib/liceo.svbg/fixes/${name}.done diff --git a/signed_fixes/pulseaudio-forced-fix_20170921.sh.gpg b/signed_fixes/pulseaudio-forced-fix_20170921.sh.gpg new file mode 100644 index 0000000000000000000000000000000000000000..2ea5c4739ca91f38527b5afdad0d15c07f39009d GIT binary patch literal 1128 zcmV-u1eg1T0t^G~doYaG^Xm`+5C2zLS)lZewi77&b_KUlWC!xB9mpLcb-yx$NwkI1 zasC>N;JNupvGc0z_8{2Wwk!Cpkr2Wg5FMy>e;~?Ri-Qw0_8~12x@8OrxvcS+E_1(T zyQT~KLlRC z+kX%hkh-EXWkWXt320DOAFM);Mz-a+0L#DS&`MEPzHxeQ!F&Wi@V-*P0y1@E=z`nEuXuBbf-Kib0M|I?hz)a(gOwx;U74YW7*S{FW& zTD@y@n>nzQdS|UTjU+6>S&}%hXX0(A@zVUB%^Gm(Nv+4&AbdaZMgvrFGrQ%9&i1puSW=*!*ir4iVx|;efN%y7Ht>^>5xmX+Pr_JMGyn`XkL3!A=7WSDzuzrPNsP(M{2(Myf@+== zP0IkVncDH`^l0z`FYc1|D0H=d%0c3+>9f{;p8iqylEK!*Zm%I2Rj!P0dmm9n5u5pD zJP3so;)VU+gQz+`A~L+LHWskYk{GXgTf#8*9**ovAsCP>-Z=jMGD$HeGyP9N#Z85R z2MDqAl}WB%*-)l#$a=R97(8%2W1#vWg4W&X3#$OlSPH6^h?8*wKZGb-t_8|V(=sj z(kqT