Changeset 5108


Ignore:
Timestamp:
Jun 7, 2017, 10:26:25 AM (2 years ago)
Author:
hectorgh
Message:

read changelog

Location:
lmd/trunk/fuentes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/debian/changelog

    r5107 r5108  
     1lmd (2.7.4) xenial; urgency=high
     2
     3  * Added timezone to lts.conf.
     4  * postinst makes sure installed lts.conf ends up with timezone var
     5  * ltsp-set-domain-search-ltsconf also removed duplicated AUTOMATICALLY ADDED msg
     6
     7 -- Hector Garcia Huerta <hectorgh@gmail.com>  Wed, 07 Jun 2017 10:23:32 +0200
     8
    19lmd (2.7.3.1) xenial; urgency=high
    210
  • lmd/trunk/fuentes/debian/lmd-server.postinst

    r4005 r5108  
    4545                        sed --follow-symlinks -i -e "s/$DefaultKey/$DefaultKey\nLDM_LANGUAGE=\"es_ES.UTF-8\"/g" /var/lib/tftpboot/ltsp/lts.conf
    4646                fi
     47                rc=$(grep "TIMEZONE" /var/lib/tftpboot/ltsp/lts.conf > /dev/null; echo $?)
     48                if [ "$rc" = "1" ]; then
     49                        if [ -e "/etc/timezone" ]; then
     50                                TZ=$(cat /etc/timezone)
     51                                echo -e "\n# Server timezone\nTIMEZONE = \"$TZ\"" >> /var/lib/tftpboot/ltsp/lts.conf
     52                        fi
     53                fi
    4754        fi
    4855        set -e
  • lmd/trunk/fuentes/lmd-server.install/usr/sbin/ltsp-set-domain-search-ltsconf

    r4004 r5108  
    88f.close()
    99needle="SEARCH_DOMAIN"
     10msg="# AUTOMATICALLY ADDED BY LTSP-SET-DOMAIN-SEARCH"
     11new_lines=[]
     12
    1013for x in lines:
    1114        if x.startswith(needle):
    12                 lines.remove(x)
     15                continue
     16        if x.find(msg)==0:
     17                continue
     18        new_lines.append(x)
     19
     20lines=new_lines
     21
    1322if domain != None:
    14         domainvalue = "# AUTOMATICALLY ADDED BY LTSP-SET-DOMAIN-SEARCH\n"
     23        domainvalue = msg + "\n"
    1524        domainvalue += needle + '="' + domain +'"\n'
    1625        lines.append(domainvalue)
  • lmd/trunk/fuentes/lmd-server.install/usr/share/lmd-server/templates/lts.conf

    r4004 r5108  
    4545RCFILE_01="chvt 7"
    4646
     47# Setting TIMEZONE
     48TIMEZONE="Europe/Madrid"
     49
    4750# Keep SSH
    4851KEEP_SYSTEM_SERVICES=ssh
Note: See TracChangeset for help on using the changeset viewer.