All Apps and Add-ons

How to delete directory in /bin of my app during upgrade

eddy20
Observer

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

I have an app that contains the /splunklib in the /bin directory, to be compliant with app inspect I have moved it to /lib. When I install the new version of my app with the upgrade option selected the existing /bin/splunklib directory still remains. After installation of the new version of my app there are now two copies of the splunklib, one in /bin and one in /lib directory.

So far the way I have been able to resolve the issue is to delete my app using: ./splunk remove app [appname] -auth :
Then install the new version of my app.

I would like my app upgrade process to take care of the work rather than requiring command line access to the splunk server.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...