Changes

From Amahi Wiki
Jump to: navigation, search
===Miscellaneous===
* Suppress Console Output
command &> /dev/null
* Remove Blank Lines From File
sed -i '/^$/d' filename
* Insert line based on text1 (Previous Line)
sed -i '/text1/ i\text2' /filename;
* Patch Comment:
# FIXME - this needs to be hosted in dl.amahi.org prior to going live!
* Run as First Admin User:
<pre>su $FUSER -c command</pre>
* Redirect to specific URL (change ''url='' to desired path (i.e. <nowiki>http://appname/appdirectory</nowiki>):
<pre>echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>' > html/index.html
chown apache:users html/index.html</pre>
* Netboot [[Netboot_Template|App Template]]
* Netboot [[Netboot_Template|App Template]]
===App Packaging Wizard===
12,424

edits