Deleting a soft link to an image directory in Cognos Analytics
Use the image.sh script with the -c delete_link option to delete a soft link to an image directory in a Cognos Analytics service instance.
Synopsis
./image.sh
-c delete_link
-n
instance_namespace
-t
tethered_namespace
-u
user_name
-p
password
-s
portal_subdirectory
-d
link_name [-h]
Options
- -d link_name
- The name of the soft link.
- -n instance_namespace
- The namespace or project.
- -p password
- Cloud Pak for Data user password.
- -s portal_subdirectory
- The destination subdirectory for the soft link.
- -t tethered_namespace
- Namespace in which Cognos Analytics is provisioned.
- -u user_name
- Cloud Pak for Data username.
- -h
- Prints help to the console and exits.
Example
The following example deletes a soft link that is named portal, which points to the /opt/ibm/cognos/analytics/webcontent/bi/images/customImages/portal_subdir directory:
export ADMIN_NAME=<platform administrator user name>
export ADMIN_PASSWORD=<platform administrator password>
./image.sh -c delete_link -n ${PROJECT_CPD_INST_OPERANDS} -t ${PROJECT_CPD_INSTANCE_TETHERED} -u ${ADMIN_NAME} -p ${ADMIN_PASSWORD} -s portal_subdir -d portal
Script file
For more information about creating the image.sh script, see Creating administration scripts.