Difference between revisions of "Application Install Scripts"
From Amahi Wiki
(New page: The install and uninstall scripts are executed in the webapp directory for the app, say, for application foobar The script is run in /var/hda/web-apps/foobar = Useful Things = The...) |
|||
Line 1: | Line 1: | ||
− | |||
The install and uninstall scripts are executed in the webapp directory for the app, say, for application | The install and uninstall scripts are executed in the webapp directory for the app, say, for application | ||
Line 21: | Line 20: | ||
@HDA_DOMAIN@ --> home.com (the domain) | @HDA_DOMAIN@ --> home.com (the domain) | ||
@HDA_NETMASK@ --> 255.255.255 (the netmask) | @HDA_NETMASK@ --> 255.255.255 (the netmask) | ||
− | @HDA_NICKNAME@ --> < | + | @HDA_NICKNAME@ --> <nick> (the nickname of the dyndns - <nick>.yourhda.com) |
please don't assume much and use as generally as possible, | please don't assume much and use as generally as possible, | ||
as these may support more general settings in the future | as these may support more general settings in the future | ||
(like a more general netmask, etc.) | (like a more general netmask, etc.) |
Revision as of 19:25, 17 March 2009
The install and uninstall scripts are executed in the webapp directory for the app, say, for application
foobar
The script is run in
/var/hda/web-apps/foobar
Useful Things
The install script can use some utility scripts (we expect to improve on these as time goes on, so please feel free to ask for things to be canned as scripts as you see the need!).
hda-install-file
This script will install files with some details of the local installation replaced, namely:
@HDA_NETWORK@ --> 192.168.1 (the network) @HDA_SELF@ --> 10 (the ip address of the HDA) @HDA_DOMAIN@ --> home.com (the domain) @HDA_NETMASK@ --> 255.255.255 (the netmask) @HDA_NICKNAME@ --> <nick> (the nickname of the dyndns - <nick>.yourhda.com)
please don't assume much and use as generally as possible, as these may support more general settings in the future (like a more general netmask, etc.)