Changeset 5108
- Timestamp:
- Jun 7, 2017, 10:26:25 AM (4 years ago)
- Location:
- lmd/trunk/fuentes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lmd/trunk/fuentes/debian/changelog
r5107 r5108 1 lmd (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 1 9 lmd (2.7.3.1) xenial; urgency=high 2 10 -
lmd/trunk/fuentes/debian/lmd-server.postinst
r4005 r5108 45 45 sed --follow-symlinks -i -e "s/$DefaultKey/$DefaultKey\nLDM_LANGUAGE=\"es_ES.UTF-8\"/g" /var/lib/tftpboot/ltsp/lts.conf 46 46 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 47 54 fi 48 55 set -e -
lmd/trunk/fuentes/lmd-server.install/usr/sbin/ltsp-set-domain-search-ltsconf
r4004 r5108 8 8 f.close() 9 9 needle="SEARCH_DOMAIN" 10 msg="# AUTOMATICALLY ADDED BY LTSP-SET-DOMAIN-SEARCH" 11 new_lines=[] 12 10 13 for x in lines: 11 14 if x.startswith(needle): 12 lines.remove(x) 15 continue 16 if x.find(msg)==0: 17 continue 18 new_lines.append(x) 19 20 lines=new_lines 21 13 22 if domain != None: 14 domainvalue = "# AUTOMATICALLY ADDED BY LTSP-SET-DOMAIN-SEARCH\n"23 domainvalue = msg + "\n" 15 24 domainvalue += needle + '="' + domain +'"\n' 16 25 lines.append(domainvalue) -
lmd/trunk/fuentes/lmd-server.install/usr/share/lmd-server/templates/lts.conf
r4004 r5108 45 45 RCFILE_01="chvt 7" 46 46 47 # Setting TIMEZONE 48 TIMEZONE="Europe/Madrid" 49 47 50 # Keep SSH 48 51 KEEP_SYSTEM_SERVICES=ssh
Note: See TracChangeset
for help on using the changeset viewer.