Procedure to automate the SIF procedure

Version 1

    Following is the script to export the profile

    #!/bin/sh

    # This is a program to create the SIF package in VMware Studio 2.5

     

    PROFILE_PATH=/opt/vmware/var/lib/build/profiles/

     

    ls /opt/vmware/var/lib/build/profiles/

    echo

    echo -n "Enter the name of the package from the list : "

    read packageName

     

    studiocli --sif --export $PROFILE_PATH/$packageName

    # End of the script

    Following is the script to import the profile

    #!/bin/sh

    # This is a program to import the SIF package in VMware Studio 2.5

     

    echo -n "Enter the name & path of the SIF package [e.g. /root/test.sif] : "

    read packageNamePath

     

    studiocli --sif --import $packageNamePath --b /

    # End of the script