Changes

From Amahi Wiki
Jump to: navigation, search
mkdir -p /tmp/my-webapp-test
cd /tmp/my-webapp-test
wget <nowiki>http://url-for-muy-tar-ball-or-zip-file.tgz</nowiki>
untar/unzip mytarball
mv main-dir html
then run the script here ...
**NOTE: many apps include a .htaccess file that is hidden and may cause you problems. try to remove this if needed!
== Use of inline files with EOF ==
Here is a quick guide to make install scripts easier with [[Patch and diff]]
== The hda-install-file utility script ==
This utility script will install files with some details of the local installation replaced, namely:
(like a more general netmask, etc.)
== The amahi-download utility script ==
This script is useful to more securely download files in install scripts. It's used with a URL and the sha1sum of the file it's meant to download:  amahi-download -h Usage: /usr/bin/amahi-download [options] <filename|url> <sha1sum> -h, --help Show this help message. This script will exit with a failure if the download fails or the checksum signature fails to check. == to To change the contents of a file while installing an webapp ==
i.e. you would need this to edit configuration files for one-click installs in HDA.
== hda-create-db-and-user utility script ==
Utility Script for creating a MySQL MariaDB database and user for accessing the newly created database.
<small>
To drop the same database '''<small>hda-create-db-and-user -d foo</small>'''
= Make an app start when the server (re)boots =
The best way to have your app start when the computer boots/reboots is to add an entry to the crontab. Since the install scripts are run by the user 'apache', you can only add entries to apache's crontab. This means you cannot start any apps that require root privileges.
</small>
= Clean up = Have fun creating your apps. If you need something ask at in the [http://webchat.freenode.net/?channels=amahi IRC ] :)
12,424

edits