Loading add_session_script.sh +14 −5 Original line number Diff line number Diff line #!/bin/bash USERS="01-mini 02-super 03-maxi prof direction" DIR=$(realpath $(dirname $0)) USERS="direction" for u in $USERS do if [ -z "`grep '^exec /usr/local/bin/session.sh' /home/$u/.fluxbox/startup `" ] then sed -i -e 's@^exec fluxbox$@exec /usr/local/bin/session.sh \&\nexec fluxbox@' /home/$u/.fluxbox/startup fi cat <<EOF >/home/$u/.config/autostart/mounts.desktop [Desktop Entry] Version=1.0 Type=Application Name=Montages reseau Comment= Exec=$DIR/session.sh Icon=4137_winhlp32.0 Path= Terminal=false StartupNotify=false EOF done create_cifs_mounts.sh +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ for usr in 01-mini 02-super 03-maxi do mkdir -p /home/shares/$usr/ELEVES mkdir -p /home/shares/$usr/PROFESSEURS chown -R $usr:$usr /home/shares/$usr chown -R direction:direction /home/shares/$usr lvl=${LEVELS[$usr]} if [ $lvl != 'CP' ] then Loading deploy.sh +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ export https_proxy="http://dnsproxy:3128" apt-get update && apt-get install git # En cas d’erreur verifier les commandes echo et au besoin editer le fichier /etc/apt/apt.conf.d/70debconf cd /opt git clone --branch Primtux4 https://gitecoles.grenoble.fr/grenoble/primtux-eole git clone --branch Mint https://gitecoles.grenoble.fr/grenoble/primtux-eole cd primtux-eole DIR=$PWD Loading fix_firefox.sh +13 −11 Original line number Diff line number Diff line Loading @@ -2,11 +2,12 @@ USERS="administrateur direction" for u in $USERS do profile=`awk -F = '/^Path/{print $2}' /home/$u/.mozilla/firefox/profiles.ini` #echo "$u uses profile $profile" preffile="/home/$u/.mozilla/firefox/$profile/user.js" #echo $preffile for pref in "browser.newtabpage.activity-stream.prerender" "browser.newtabpage.activity-stream.showTopSites" for profile in `awk -F = '/^Path/{print $2}' /home/$u/.mozilla/firefox/profiles.ini` do echo "$u uses profile $profile" preffile="/home/$u/.mozilla/firefox/$profile/prefs.js" echo $preffile for pref in "browser.newtabpage.activity-stream.feeds.section.highlights" "browser.newtabpage.activity-stream.feeds.topsites" do if [ -z "$(grep "$pref" $preffile)" ] then Loading @@ -16,3 +17,4 @@ do fi done done done fix_libreoffice.sh +6 −4 Original line number Diff line number Diff line #!/bin/bash add-apt-repository ppa:libreoffice/ppa export https_proxy="http://dnsproxy:3128" export http_proxy="http://dnsproxy:3128" add-apt-repository -y ppa:libreoffice/ppa key=$(apt-get update 2> /dev/null | grep NO_PUBKEY | rev | cut -d ' ' -f 1 | rev) apt-key adv --keyserver-options http-proxy=$http_proxy --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys $key apt-get update DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" -y upgrade DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" -y dist-upgrade Loading
add_session_script.sh +14 −5 Original line number Diff line number Diff line #!/bin/bash USERS="01-mini 02-super 03-maxi prof direction" DIR=$(realpath $(dirname $0)) USERS="direction" for u in $USERS do if [ -z "`grep '^exec /usr/local/bin/session.sh' /home/$u/.fluxbox/startup `" ] then sed -i -e 's@^exec fluxbox$@exec /usr/local/bin/session.sh \&\nexec fluxbox@' /home/$u/.fluxbox/startup fi cat <<EOF >/home/$u/.config/autostart/mounts.desktop [Desktop Entry] Version=1.0 Type=Application Name=Montages reseau Comment= Exec=$DIR/session.sh Icon=4137_winhlp32.0 Path= Terminal=false StartupNotify=false EOF done
create_cifs_mounts.sh +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ for usr in 01-mini 02-super 03-maxi do mkdir -p /home/shares/$usr/ELEVES mkdir -p /home/shares/$usr/PROFESSEURS chown -R $usr:$usr /home/shares/$usr chown -R direction:direction /home/shares/$usr lvl=${LEVELS[$usr]} if [ $lvl != 'CP' ] then Loading
deploy.sh +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ export https_proxy="http://dnsproxy:3128" apt-get update && apt-get install git # En cas d’erreur verifier les commandes echo et au besoin editer le fichier /etc/apt/apt.conf.d/70debconf cd /opt git clone --branch Primtux4 https://gitecoles.grenoble.fr/grenoble/primtux-eole git clone --branch Mint https://gitecoles.grenoble.fr/grenoble/primtux-eole cd primtux-eole DIR=$PWD Loading
fix_firefox.sh +13 −11 Original line number Diff line number Diff line Loading @@ -2,11 +2,12 @@ USERS="administrateur direction" for u in $USERS do profile=`awk -F = '/^Path/{print $2}' /home/$u/.mozilla/firefox/profiles.ini` #echo "$u uses profile $profile" preffile="/home/$u/.mozilla/firefox/$profile/user.js" #echo $preffile for pref in "browser.newtabpage.activity-stream.prerender" "browser.newtabpage.activity-stream.showTopSites" for profile in `awk -F = '/^Path/{print $2}' /home/$u/.mozilla/firefox/profiles.ini` do echo "$u uses profile $profile" preffile="/home/$u/.mozilla/firefox/$profile/prefs.js" echo $preffile for pref in "browser.newtabpage.activity-stream.feeds.section.highlights" "browser.newtabpage.activity-stream.feeds.topsites" do if [ -z "$(grep "$pref" $preffile)" ] then Loading @@ -16,3 +17,4 @@ do fi done done done
fix_libreoffice.sh +6 −4 Original line number Diff line number Diff line #!/bin/bash add-apt-repository ppa:libreoffice/ppa export https_proxy="http://dnsproxy:3128" export http_proxy="http://dnsproxy:3128" add-apt-repository -y ppa:libreoffice/ppa key=$(apt-get update 2> /dev/null | grep NO_PUBKEY | rev | cut -d ' ' -f 1 | rev) apt-key adv --keyserver-options http-proxy=$http_proxy --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys $key apt-get update DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" -y upgrade DEBIAN_FRONTEND='noninteractive' apt-get -o Dpkg::Options::="--force-confold" -y dist-upgrade