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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...