All Apps and Add-ons

Removing directory in /bin during app upgrade

eddy20
Observer

Is there a way to delete a directory in the /bin directory of my app during the upgrade installation of a newer version of my app?

I moved the splunklib directory from the /bin directory to the /lib directory in my app to be compliant with the appinspect report.  If I install my new app and click the upgrade checkbox the splunklib directory under the /bin does not get removed so now I have the old version of splunklib in /bin and the new version of splunklib in /lib directory.

Currently the way I can resolve the issue is to go to the cli and remove the app and install the new app version clean.   Below is the command I used to remove the app:

./splunk remove app [appname] -auth <username>:<password>
 
The app is located in: $SPLUNK_HOME/etc/apps/<appname>
 
I would like to avoid the user from having to access the cli if possible.
 
Labels (4)
0 Karma
Get Updates on the Splunk Community!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...