Skip to content

Commit a1b2bf8

Browse files
committed
Added deprecated script warning
1 parent 37a65e8 commit a1b2bf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/storage/secondary/cloud-install-sys-tmplt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919

2020

2121
usage() {
22+
printf "\nWARNING - This script has been deprecated and will be removed in a future release\n"
2223
printf "\nUsage: %s:\n\t-m secondary storage mount point\n\t-f system vm template file\n\t-h hypervisor name: kvm|vmware|xenserver|hyperv|ovm3\n\t-s mgmt server secret key, if you specified any when running cloudstack-setup-database, default is password\n\t-u Url to system vm template\n\t-F clean up system templates of specified hypervisor\n\t-e Template suffix, e.g vhd, ova, qcow2\n\t-o Database server hostname or ip, e.g localhost\n\t-r Database user name, e.g root\n\t-p mysql database port\n\t-d Database password. Followed by nothing if the password is empty\n\n" $(basename $0) >&2
2324
printf "\tor\n"
2425
printf "\nUsage: %s:\n\t-m secondary storage mount point\n\t-u http url for system vm template\n\t-h hypervisor name: kvm|vmware|xenserver|hyperv|ovm3\n\t-s mgmt server secret key\n\n" $(basename $0) >&2
26+
printf "\nWARNING - This script has been deprecated and will be removed in a future release\n\n"
2527
}
2628

2729
# Usage: e.g. failed $? "this is an error"
@@ -275,4 +277,4 @@ echo "$ext.virtualsize=$vrtmpltsize" >> $destdir/template.properties
275277
echo "virtualsize=$vrtmpltsize" >> $destdir/template.properties
276278
echo "$ext.size=$tmpltsize" >> $destdir/template.properties
277279

278-
echo "Successfully installed system VM template $tmpltimg and template.properties to $destdir"
280+
echo "Successfully installed system VM template $tmpltimg and template.properties to $destdir"

0 commit comments

Comments
 (0)