update_configurations.sh 1.11 KB
Newer Older
1
#!/bin/bash
2 3 4 5 6 7 8 9 10
DIR=$(realpath $(dirname $0))

# Install auto update
name="anacronjob.sh"
tabfile="/etc/anacrontab"
if [ -z "$(grep $name $tabfile)" ]
then
    echo "@weekly 15 UpdatePrimtux $DIR/$name > /var/log/ptUpdate.log 2>&1" >> $tabfile
fi
11

David Beniamine's avatar
David Beniamine committed
12 13 14 15 16
if [ -z "$(dpkg -l | grep python3-yaml)" ]
then
    apt-get install -y python3-yaml
fi

David Beniamine's avatar
David Beniamine committed
17 18 19 20 21 22
run_script(){
    echo "Running $1"
    $DIR/$1
    echo "Done $1 $?"
}

23
cp "$DIR/fond admin.png" /home/administrateur/Documents/
24 25
cp $DIR/conky.conf /etc/conky/
cp $DIR/session.sh /usr/local/bin/
David Beniamine's avatar
David Beniamine committed
26 27 28 29 30 31 32 33 34 35 36 37
run_script add_session_script.sh
run_script create_cifs_mounts.sh
run_script set_mime_apps.sh
run_script set_screens.sh
run_script install_print_drivers.sh
run_script fix_libreoffice.sh
run_script install_vnc.sh
run_script install_conky.sh
run_script upgrade_repository.sh
run_script fix_sound.sh
run_script fix_xscreensaver.sh
run_script fix_pcmanfm.sh
38
run_script fix_cups.sh
David Beniamine's avatar
David Beniamine committed
39
run_script fix_firefox.sh
David Beniamine's avatar
David Beniamine committed
40
run_script fix_proxy.sh
41
run_script update_faces.sh
David Beniamine's avatar
David Beniamine committed
42
run_script install_orca.sh
David Beniamine's avatar
David Beniamine committed
43
run_script register.sh
David Beniamine's avatar
David Beniamine committed
44
run_script install_catfish.sh
45 46 47
run_script fix_locales.sh
run_script fix_network.sh
run_script fix_fsck.sh