The install script should do '''everything and uninstall scripts are executed in anything necessary''' to make an app work out of the webapp directory for the appbox. Simple as that.:)
The install script should do ''everything necessary'' to make an app work out of the box. Simple as that. :)
The install and uninstall scripts are executed in the webapp directory for the app. You should not code absolute paths in the (un)install scripts. You can use $PWD if you really have to.
Say, for You should also not make assumptions about applicationnames.
foobarSay, for an application whose name has been assigned as
The script is run in this directory foobar
/var/hda/web-apps/foobarThe scripts are run in this directory
/var/hda/web-apps/foobar
However, if the user already has an app called foobar, this new app being installed may be called foobar-2 or foobar-3 ... etc. In the future we may support the installation of multiple instances of a single webapp (e.g. multiple wikis in a school).
= Useful Things =