• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

App vault - rolling your own

D

Doug_M

Guest
Hi. I'm rolling my own app vault package for PostNuke 0.761. I started by copying the vault package for PostNuke 0.750 and modified it accordingly. Things are going well but I have a problem with the uninstall.

The manual doesn't describe how to write an uninstall script. I looked at a bunch of the installed app vault packages and they don't seem to have an uninstall script. When I uninstall PostNuke with my vault package the MySQL database is deleted but the app directory in the vhost/httpdocs folder remains.

I tried using this in a postuninstall script in the scripts directory:

Code:
#!/bin/sh
# nuke postuninstall script
cd ${vhost_path}
rm -rf ${vhost_path}/${documents_directory}/${install_prefix}
exit 0

It doesn't work, the folder is untouched. By the way, according to the manual, the postuninstall script is "called after the files of the application are removed from the vhost".

So, I figure I need an uninstall script in the uninstall folder, but I don't know how to proceed and I can't find an example.

Regards,
Doug
 
Back
Top