Ticket #20 (enhancement)

Opened 2 years ago

Last modified 2 years ago

Host name hard coded in voms scripts

Status: new

Reported by: jpr@openidp.org Assigned to:
Priority: standard Keywords:
Cc:

The host name is current hard coded in the voms create scripts this needs to change to just knowing the hostname for the url.

vo:/var/www/myvocs-box/voms/scripts# grep -r vo.ua * cms/cms_conf_template.php:$base_url = "http://vo.uabgrid.uab.edu/%VO_NAME%/%CMS_DIR%"; cms/cms_conf_template.php:$vo_home = "http://vo.uabgrid.uab.edu/%VO_NAME%"; filemgr/filemgr_conf_template.php:$website='http://vo.uabgrid.uab.edu/%VO_NAME%/filemgr/data/'; filemgr/filemgr_conf_template.php:$vo_home='https://vo.uabgrid.uab.edu/%VO_NAME%'; vo_htaccess_template.txt:Redirect /%VO_NAME%/logout http://vo.uabgrid.uab.edu/sympa/logout wiki/wiki_conf_template.php:VO_HOMEPAGE = http://vo.uabgrid.uab.edu/%VO_NAME%/ wiki/config/config.ini:VO_HOMEPAGE = http://vo.uabgrid.uab.edu/%VO_NAME%/

Attachments

scripts.patch (4.5 kB) - added by jpr@openidp.org on 07/30/07 11:05:13.
Patch script files with template tag and fix http to https in key files

Change History

07/30/07 11:05:13: Modified by jpr@openidp.org

  • attachment scripts.patch added.

Patch script files with template tag and fix http to https in key files

07/30/07 11:51:06: Modified by jpr@openidp.org

The scripts.patch changes the script modification templates to use the string _MVB_HOSTNAME_ to identify the places where the host name needs to be changed. This can then be combined with a for loop to update the hostname to the current hostname.

This patch should only be applied to a mvb instance undergoing a hostname change from the initially unpacked version. There is no configuration step when mvb is first run so it would break the out of box configuration by introducting these template variables instead of the hostname myvocs-box.