Bug 735117 - Bootstrap script deletes client_config_update.py if run locally on the Satellite server from the /var/www/html/pub/bootstrap/ directory
Summary: Bootstrap script deletes client_config_update.py if run locally on the Satell...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Registration
Version: 541
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2011-09-01 14:35 UTC by Dustin Black
Modified: 2015-05-29 20:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-29 20:10:49 UTC


Attachments (Terms of Use)

Description Dustin Black 2011-09-01 14:35:25 UTC
Description of problem:
When attempting to run the bootstrap.sh script generated by Satellite on the local satellite server, from the /var/www/html/pub/bootstrap/ directory, the script will delete the client_config_update.py file from the directory.

Version-Release number of selected component (if applicable): 
5.4.1

How reproducible:
Any time the generated bootstrap.sh script is run from its installation directory of /var/www/html/pub/bootstrap/

Steps to Reproduce:
1. Generate the bootstrap file from the Satellite admin interface.
2. On the Satellite server locally: cd /var/www/html/pub/bootstrap
3. Edit the bootstrap.sh file to include the activation key and comment out the exit command
3. bash ./bootstrap.sh
  
Actual results:
Local client_config_update.py file is deleted, and script fails.

Expected results:
Script executes normally, registering the local system with the activation key.

Additional info:
From the bootstrap.sh file:

echo "UPDATING RHN_REGISTER/UP2DATE CONFIGURATION FILES"
echo "-------------------------------------------------"
echo "* downloading necessary files"
echo "  client_config_update.py..."
rm -f client_config_update.py   <--local file is deleted
$FETCH ${HTTPS_PUB_DIRECTORY}/bootstrap/client_config_update.py   <--download of file is to PWD


Note You need to log in before you can comment on or make changes to this bug.