• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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