source: lmd/trunk/fuentes/lmd-server.install/usr/share/lmd-scripts/lmd-upgrade-images.sh @ 392

Last change on this file since 392 was 392, checked in by hectorgh, 4 years ago

adding project files

  • Property svn:executable set to *
File size: 762 bytes
Line 
1#!/bin/bash
2
3
4function upgrade_image(){
5        sleep 1
6        image=$1
7        echo "<br/><b>Updating Image to the last LliureX 13... Coffee time... $image</b>"
8        ltsp-chroot -p -m -a $image lliurex-upgrade
9        echo "<br/><b>Updating Image to LliureX 14... $image</b>"
10        ltsp-chroot -p -m -a $image lliurex-upgrade
11        echo "<br/><b>Adding lmd-client and epoptes-client</b>"
12        ltsp-chroot -p -m -a $image apt-get install -y --force-yes lmd-client epoptes-client
13        echo "<br/><b>Updating kernels...</b>"
14        ltsp-chroot -p -m -a $image /usr/share/ltsp/update-kernels
15        ltsp-update-kernels $image
16        echo "<br/><b>Regenerating img for... $image</b>"
17        ltsp-update-image $image       
18}
19
20function update_images {
21                ltsp-update-sshkeys
22                for i in $*; do
23                        upgrade_image $i       
24                done           
25    }
26
27update_images $*
Note: See TracBrowser for help on using the repository browser.