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

Last change on this file since 3136 was 3136, checked in by kbut, 3 years ago

add script to set search domain

  • Property svn:executable set to *
File size: 836 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        echo "<br/><b>Setting search domain</b>"
19        ltsp-set-domain-search-ltsconf
20}
21
22function update_images {
23                ltsp-update-sshkeys
24                for i in $*; do
25                        upgrade_image $i       
26                done           
27    }
28
29update_images $*
Note: See TracBrowser for help on using the repository browser.