Changeset 1558


Ignore:
Timestamp:
May 17, 2016, 12:33:48 PM (3 years ago)
Author:
jrpelegrina
Message:

Fix cname of moodle for master and independent servers

Location:
lliurex-zero-installers/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-zero-installers/trunk/fuentes/debian/changelog

    r1387 r1558  
     1lliurex-zero-installers (0.125) xenial; urgency=medium
     2
     3  * Fix cname of moodle for master and independent servers (install_moodle.zmd)
     4
     5 -- Juan Ramon Pelegrina <juapesai@hotmail.com>  Tue, 17 May 2016 12:31:13 +0200
     6
    17lliurex-zero-installers (0.124) xenial; urgency=medium
    28
  • lliurex-zero-installers/trunk/fuentes/zero-lliurex-moodle.zmds/install-moodle.zmd

    r1387 r1558  
    174174echo "# $MSG_ZENITY_MOODLE_4" >> $HELP_PROGRESS_BAR
    175175# create file moodle in /var/lib/dnsmasq/config
    176 if [ ! -d /var/lib/dnsmasq/config ]; then
    177         mkdir -p /var/lib/dnsmasq/config
    178 fi
    179 
    180 INTERNA=$(n4d-vars getvalues INTERNAL_DOMAIN | cut -d"'" -f2)
    181 if [ -z $INTERNA ]; then
    182         echo "Error getting INTERNAL_DOMAIN"
    183         echo "It's left to set dnsmasq for moodle"
    184 else
    185         if [ ! -d /var/lib/dnsmasq/config ]; then
    186                 mkdir -p /var/lib/dnsmasq/config
    187         fi
    188         hostname=$(hostname)
    189         echo "cname=moodle."$INTERNA",$hostname."$INTERNA > /var/lib/dnsmasq/config/moodle
     176# if [ ! -d /var/lib/dnsmasq/config ]; then
     177#       mkdir -p /var/lib/dnsmasq/config
     178# fi
     179# INTERNA=$(n4d-vars getvalues INTERNAL_DOMAIN | cut -d"'" -f2)
     180# if [ -z $INTERNA ]; then
     181#       echo "Error getting INTERNAL_DOMAIN"
     182#       echo "It's left to set dnsmasq for moodle"
     183# else
     184        # if [ ! -d /var/lib/dnsmasq/config ]; then
     185        #       mkdir -p /var/lib/dnsmasq/config
     186        # fi
     187        # hostname=$(hostname)
     188        #echo "cname=moodle."$INTERNA",$hostname."$INTERNA > /var/lib/dnsmasq/config/moodle
     189MAGIC_KEY=$(cat /etc/n4d/key)
     190n4d-client -h localhost -k $MAGIC_KEY -m set_internal_dns_entry -c Dnsmasq -a moodle
    190191       
    191 fi
     192#fi
    192193echo "70"  >> $HELP_PROGRESS_BAR
    193194echo "# $MSG_ZENITY_MOODLE_5"  >> $HELP_PROGRESS_BAR
Note: See TracChangeset for help on using the changeset viewer.