Set the url accordingly when installing a system vm template

The script that installs the system vm templates sets the uuid column
for the template being installed, however it does not set the respective
url column. This commit changes that.

Signed-off-by: Remi Bergsma <apache@remi.nl>

This closes #348
This commit is contained in:
miguelaferreira 2015-06-02 14:23:31 +02:00 committed by Remi Bergsma
parent f341246888
commit e983246cd4

View File

@ -184,7 +184,7 @@ fi
_uuid=$(uuidgen)
localfile=$_uuid.$ext
_res=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "update cloud.vm_template set uuid=\"$_uuid\" where id=\"$templateId\""`)
_res=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "update cloud.vm_template set uuid=\"$_uuid\", url=\"$url\" where id=\"$templateId\""`)
mntpoint=`echo "$mntpoint" | sed 's|/*$||'`