You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b7214e6
Browse filesBrowse the repository at this point in the historyBrowse files
kishan
committed
bug 10626: Modified install sys tmpl script to get templateId from DB using db.properties
templateId=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "select max(id) from cloud.vm_template where type = \"SYSTEM\" and hypervisor_type = \"KVM\" and removed is null"`)
67
71
elif [ "$hyper"=="xenserver" ]
68
72
then
69
73
ext="vhd"
70
-
templateId=${templateId:-1}
74
+
templateId=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "select max(id) from cloud.vm_template where type = \"SYSTEM\" and hypervisor_type = \"XenServer\" and removed is null"`)
71
75
elif [ "$hyper"=="vmware" ]
72
76
then
73
77
ext="ova"
74
-
templateId=8
78
+
templateId=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "select max(id) from cloud.vm_template where type = \"SYSTEM\" and hypervisor_type = \"VMware\" and removed is null"`)
0 commit comments