devguide.html 197KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  5. <head>
  6. <!-- 2016-10-19 Wed 21:28 -->
  7. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1" />
  9. <title></title>
  10. <meta name="generator" content="Org-mode" />
  11. <meta name="author" content="Bob Mottram" />
  12. <meta name="description" content="Turn the Beaglebone Black into a personal communications server"
  13. />
  14. <meta name="keywords" content="freedombox, debian, beaglebone, red matrix, email, web server, home server, internet, censorship, surveillance, social network, irc, jabber" />
  15. <style type="text/css">
  16. <!--/*--><![CDATA[/*><!--*/
  17. .title { text-align: center;
  18. margin-bottom: .2em; }
  19. .subtitle { text-align: center;
  20. font-size: medium;
  21. font-weight: bold;
  22. margin-top:0; }
  23. .todo { font-family: monospace; color: red; }
  24. .done { font-family: monospace; color: green; }
  25. .priority { font-family: monospace; color: orange; }
  26. .tag { background-color: #eee; font-family: monospace;
  27. padding: 2px; font-size: 80%; font-weight: normal; }
  28. .timestamp { color: #bebebe; }
  29. .timestamp-kwd { color: #5f9ea0; }
  30. .org-right { margin-left: auto; margin-right: 0px; text-align: right; }
  31. .org-left { margin-left: 0px; margin-right: auto; text-align: left; }
  32. .org-center { margin-left: auto; margin-right: auto; text-align: center; }
  33. .underline { text-decoration: underline; }
  34. #postamble p, #preamble p { font-size: 90%; margin: .2em; }
  35. p.verse { margin-left: 3%; }
  36. pre {
  37. border: 1px solid #ccc;
  38. box-shadow: 3px 3px 3px #eee;
  39. padding: 8pt;
  40. font-family: monospace;
  41. overflow: auto;
  42. margin: 1.2em;
  43. }
  44. pre.src {
  45. position: relative;
  46. overflow: visible;
  47. padding-top: 1.2em;
  48. }
  49. pre.src:before {
  50. display: none;
  51. position: absolute;
  52. background-color: white;
  53. top: -10px;
  54. right: 10px;
  55. padding: 3px;
  56. border: 1px solid black;
  57. }
  58. pre.src:hover:before { display: inline;}
  59. /* Languages per Org manual */
  60. pre.src-asymptote:before { content: 'Asymptote'; }
  61. pre.src-awk:before { content: 'Awk'; }
  62. pre.src-C:before { content: 'C'; }
  63. /* pre.src-C++ doesn't work in CSS */
  64. pre.src-clojure:before { content: 'Clojure'; }
  65. pre.src-css:before { content: 'CSS'; }
  66. pre.src-D:before { content: 'D'; }
  67. pre.src-ditaa:before { content: 'ditaa'; }
  68. pre.src-dot:before { content: 'Graphviz'; }
  69. pre.src-calc:before { content: 'Emacs Calc'; }
  70. pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
  71. pre.src-fortran:before { content: 'Fortran'; }
  72. pre.src-gnuplot:before { content: 'gnuplot'; }
  73. pre.src-haskell:before { content: 'Haskell'; }
  74. pre.src-java:before { content: 'Java'; }
  75. pre.src-js:before { content: 'Javascript'; }
  76. pre.src-latex:before { content: 'LaTeX'; }
  77. pre.src-ledger:before { content: 'Ledger'; }
  78. pre.src-lisp:before { content: 'Lisp'; }
  79. pre.src-lilypond:before { content: 'Lilypond'; }
  80. pre.src-lua:before { content: 'Lua'; }
  81. pre.src-matlab:before { content: 'MATLAB'; }
  82. pre.src-mscgen:before { content: 'Mscgen'; }
  83. pre.src-ocaml:before { content: 'Objective Caml'; }
  84. pre.src-octave:before { content: 'Octave'; }
  85. pre.src-org:before { content: 'Org mode'; }
  86. pre.src-oz:before { content: 'OZ'; }
  87. pre.src-plantuml:before { content: 'Plantuml'; }
  88. pre.src-processing:before { content: 'Processing.js'; }
  89. pre.src-python:before { content: 'Python'; }
  90. pre.src-R:before { content: 'R'; }
  91. pre.src-ruby:before { content: 'Ruby'; }
  92. pre.src-sass:before { content: 'Sass'; }
  93. pre.src-scheme:before { content: 'Scheme'; }
  94. pre.src-screen:before { content: 'Gnu Screen'; }
  95. pre.src-sed:before { content: 'Sed'; }
  96. pre.src-sh:before { content: 'shell'; }
  97. pre.src-sql:before { content: 'SQL'; }
  98. pre.src-sqlite:before { content: 'SQLite'; }
  99. /* additional languages in org.el's org-babel-load-languages alist */
  100. pre.src-forth:before { content: 'Forth'; }
  101. pre.src-io:before { content: 'IO'; }
  102. pre.src-J:before { content: 'J'; }
  103. pre.src-makefile:before { content: 'Makefile'; }
  104. pre.src-maxima:before { content: 'Maxima'; }
  105. pre.src-perl:before { content: 'Perl'; }
  106. pre.src-picolisp:before { content: 'Pico Lisp'; }
  107. pre.src-scala:before { content: 'Scala'; }
  108. pre.src-shell:before { content: 'Shell Script'; }
  109. pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
  110. /* additional language identifiers per "defun org-babel-execute"
  111. in ob-*.el */
  112. pre.src-cpp:before { content: 'C++'; }
  113. pre.src-abc:before { content: 'ABC'; }
  114. pre.src-coq:before { content: 'Coq'; }
  115. pre.src-groovy:before { content: 'Groovy'; }
  116. /* additional language identifiers from org-babel-shell-names in
  117. ob-shell.el: ob-shell is the only babel language using a lambda to put
  118. the execution function name together. */
  119. pre.src-bash:before { content: 'bash'; }
  120. pre.src-csh:before { content: 'csh'; }
  121. pre.src-ash:before { content: 'ash'; }
  122. pre.src-dash:before { content: 'dash'; }
  123. pre.src-ksh:before { content: 'ksh'; }
  124. pre.src-mksh:before { content: 'mksh'; }
  125. pre.src-posh:before { content: 'posh'; }
  126. /* Additional Emacs modes also supported by the LaTeX listings package */
  127. pre.src-ada:before { content: 'Ada'; }
  128. pre.src-asm:before { content: 'Assembler'; }
  129. pre.src-caml:before { content: 'Caml'; }
  130. pre.src-delphi:before { content: 'Delphi'; }
  131. pre.src-html:before { content: 'HTML'; }
  132. pre.src-idl:before { content: 'IDL'; }
  133. pre.src-mercury:before { content: 'Mercury'; }
  134. pre.src-metapost:before { content: 'MetaPost'; }
  135. pre.src-modula-2:before { content: 'Modula-2'; }
  136. pre.src-pascal:before { content: 'Pascal'; }
  137. pre.src-ps:before { content: 'PostScript'; }
  138. pre.src-prolog:before { content: 'Prolog'; }
  139. pre.src-simula:before { content: 'Simula'; }
  140. pre.src-tcl:before { content: 'tcl'; }
  141. pre.src-tex:before { content: 'TeX'; }
  142. pre.src-plain-tex:before { content: 'Plain TeX'; }
  143. pre.src-verilog:before { content: 'Verilog'; }
  144. pre.src-vhdl:before { content: 'VHDL'; }
  145. pre.src-xml:before { content: 'XML'; }
  146. pre.src-nxml:before { content: 'XML'; }
  147. /* add a generic configuration mode; LaTeX export needs an additional
  148. (add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
  149. pre.src-conf:before { content: 'Configuration File'; }
  150. table { border-collapse:collapse; }
  151. caption.t-above { caption-side: top; }
  152. caption.t-bottom { caption-side: bottom; }
  153. td, th { vertical-align:top; }
  154. th.org-right { text-align: center; }
  155. th.org-left { text-align: center; }
  156. th.org-center { text-align: center; }
  157. td.org-right { text-align: right; }
  158. td.org-left { text-align: left; }
  159. td.org-center { text-align: center; }
  160. dt { font-weight: bold; }
  161. .footpara { display: inline; }
  162. .footdef { margin-bottom: 1em; }
  163. .figure { padding: 1em; }
  164. .figure p { text-align: center; }
  165. .inlinetask {
  166. padding: 10px;
  167. border: 2px solid gray;
  168. margin: 10px;
  169. background: #ffffcc;
  170. }
  171. #org-div-home-and-up
  172. { text-align: right; font-size: 70%; white-space: nowrap; }
  173. textarea { overflow-x: auto; }
  174. .linenr { font-size: smaller }
  175. .code-highlighted { background-color: #ffff00; }
  176. .org-info-js_info-navigation { border-style: none; }
  177. #org-info-js_console-label
  178. { font-size: 10px; font-weight: bold; white-space: nowrap; }
  179. .org-info-js_search-highlight
  180. { background-color: #ffff00; color: #000000; font-weight: bold; }
  181. .org-svg { width: 90%; }
  182. /*]]>*/-->
  183. </style>
  184. <link rel="stylesheet" type="text/css" href="freedombone.css" />
  185. <script type="text/javascript">
  186. /*
  187. @licstart The following is the entire license notice for the
  188. JavaScript code in this tag.
  189. Copyright (C) 2012-2013 Free Software Foundation, Inc.
  190. The JavaScript code in this tag is free software: you can
  191. redistribute it and/or modify it under the terms of the GNU
  192. General Public License (GNU GPL) as published by the Free Software
  193. Foundation, either version 3 of the License, or (at your option)
  194. any later version. The code is distributed WITHOUT ANY WARRANTY;
  195. without even the implied warranty of MERCHANTABILITY or FITNESS
  196. FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  197. As additional permission under GNU GPL version 3 section 7, you
  198. may distribute non-source (e.g., minimized or compacted) forms of
  199. that code without the copy of the GNU GPL normally required by
  200. section 4, provided you include this license notice and a URL
  201. through which recipients can access the Corresponding Source.
  202. @licend The above is the entire license notice
  203. for the JavaScript code in this tag.
  204. */
  205. <!--/*--><![CDATA[/*><!--*/
  206. function CodeHighlightOn(elem, id)
  207. {
  208. var target = document.getElementById(id);
  209. if(null != target) {
  210. elem.cacheClassElem = elem.className;
  211. elem.cacheClassTarget = target.className;
  212. target.className = "code-highlighted";
  213. elem.className = "code-highlighted";
  214. }
  215. }
  216. function CodeHighlightOff(elem, id)
  217. {
  218. var target = document.getElementById(id);
  219. if(elem.cacheClassElem)
  220. elem.className = elem.cacheClassElem;
  221. if(elem.cacheClassTarget)
  222. target.className = elem.cacheClassTarget;
  223. }
  224. /*]]>*///-->
  225. </script>
  226. </head>
  227. <body>
  228. <div id="preamble" class="status">
  229. <a name="top" id="top"></a>
  230. </div>
  231. <div id="content">
  232. <div class="org-center">
  233. <div class="figure">
  234. <p><img src="images/logo.png" alt="logo.png" />
  235. </p>
  236. </div>
  237. </div>
  238. <center><h1>Developers Guide</h1></center>
  239. <div id="outline-container-org3b1ab59" class="outline-2">
  240. <h2 id="org3b1ab59">Introduction</h2>
  241. <div class="outline-text-2" id="text-org3b1ab59">
  242. <p>
  243. Freedombone consists of a set of bash scripts. There are a lot of them, but they're not very complicated. If you're familiar with the GNU/Linux commandline and can hack a bash script then you can probably add a new app or fix a bug in the system. There are no trendy development frameworks to learn or to get in your way.
  244. </p>
  245. </div>
  246. </div>
  247. <div id="outline-container-orgeaadef1" class="outline-2">
  248. <h2 id="orgeaadef1">Community Statement</h2>
  249. <div class="outline-text-2" id="text-orgeaadef1">
  250. <p>
  251. This project doesn't require you to take any special pledge of allegiance or subscribe to any guru's list of commandments. It does not care about your gender, race, national flag or political alignment. It is agnostic towards your religion or lack thereof. It doesn't give one hoot as to whether you are young or old, rich or poor, gay, trans or straight. It does not care if you like your eggs sunny side up or if you are a vegan.
  252. </p>
  253. <p>
  254. This is an inclusive project which will take patches or pull requests from anyone, in a generous manner along the lines described by the late Pieter Hintjens in his book <i>Social Architecture</i>. Any useful patch is likely to be merged so long as it is submitted under a license compatible with AGPL3. Copyright assignment is not required.
  255. </p>
  256. <p>
  257. Freedombone is a free system. That's free as in no secret source. For anything. Although there's nothing to stop you from adding proprietary utilities or apps if you wish, any patches containing closed stuff or which are dependent upon closed stuff won't be accepted.
  258. </p>
  259. <p>
  260. This project also has a no bullshit policy. Anyone trying to cause a ruckus by trolling or engaging in behavior which is disruptive or disrespectful to others will be speedily blocked and ignored. Life's too short, and there's too much to be done.
  261. </p>
  262. </div>
  263. </div>
  264. <div id="outline-container-org0d81783" class="outline-2">
  265. <h2 id="org0d81783">Adding extra apps</h2>
  266. <div class="outline-text-2" id="text-org0d81783">
  267. <p>
  268. Suppose you have some internet application which you want to add to the system. To do this you need to create an app script which tells the system how to install/remove and also backup/restore. The script should be designed to work with the current stable version of Debian.
  269. </p>
  270. <p>
  271. On an installed system the app scripts go into the directory:
  272. </p>
  273. <div class="org-src-container">
  274. <pre class="src src-bash">/usr/share/freedombone/apps
  275. </pre>
  276. </div>
  277. <p>
  278. and within the project repo they appear within the <i>src</i> directory. Your new app script should have the name:
  279. </p>
  280. <div class="org-src-container">
  281. <pre class="src src-bash">freedombone-app-[myappname]
  282. </pre>
  283. </div>
  284. <p>
  285. The <i>myappname</i> value should not contain any spaces and will appear in the list of available apps.
  286. </p>
  287. <p>
  288. An example template for an app script is shown below. Copy this and add whatever variables and configuration you need. Search and replace <i>myappname</i> with your own.
  289. </p>
  290. <div class="org-src-container">
  291. <pre class="src src-bash"><span class="org-comment-delimiter">#</span><span class="org-comment">!/bin/</span><span class="org-keyword">bash</span>
  292. <span class="org-comment-delimiter"># </span><span class="org-comment">Copyright (C) Year YourName &lt;YourEmail&gt;</span>
  293. <span class="org-comment-delimiter">#</span>
  294. <span class="org-comment-delimiter"># </span><span class="org-comment">This program is free software: you can redistribute it</span>
  295. <span class="org-comment-delimiter"># </span><span class="org-comment">and/or modify it under the terms of the GNU Affero General</span>
  296. <span class="org-comment-delimiter"># </span><span class="org-comment">Public License as published by the Free Software Foundation,</span>
  297. <span class="org-comment-delimiter"># </span><span class="org-comment">either version 3 of the License, or (at your option) any</span>
  298. <span class="org-comment-delimiter"># </span><span class="org-comment">later version.</span>
  299. <span class="org-comment-delimiter">#</span>
  300. <span class="org-comment-delimiter"># </span><span class="org-comment">This program is distributed in the hope that it will be useful,</span>
  301. <span class="org-comment-delimiter"># </span><span class="org-comment">but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
  302. <span class="org-comment-delimiter"># </span><span class="org-comment">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
  303. <span class="org-comment-delimiter"># </span><span class="org-comment">GNU Affero General Public License for more details.</span>
  304. <span class="org-comment-delimiter">#</span>
  305. <span class="org-comment-delimiter"># </span><span class="org-comment">You should have received a copy of the GNU Affero General</span>
  306. <span class="org-comment-delimiter"># </span><span class="org-comment">Public License along with this program. If not, see</span>
  307. <span class="org-comment-delimiter"># </span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  308. # 'full' includes your app in the full installation and you
  309. # can also add other variants, separated by spaces. The
  310. # available variants will be detected automatically from the
  311. # app scripts.
  312. VARIANTS='full'
  313. # If you want this to appear on the control panel About screen
  314. SHOW_ON_ABOUT=1
  315. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  316. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  317. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  318. MYAPPNAME_ONION_PORT=[port number]
  319. MYAPPNAME_DB_PASSWORD=
  320. # A directory where the data for this app exists
  321. MYAPP_DATA_DIR=/var/lib/somedirectory
  322. # List of configuration variables used by the app
  323. myappname_variables=(ONION_ONLY
  324. MY_USERNAME
  325. SOME_IMPORTANT_CONFIG_VARIABLE
  326. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  327. MY_FUNKY_AVATAR
  328. MYAPPNAME_ONION_PORT
  329. MYAPPNAME_DB_PASSWORD)
  330. function change_password_myappname {
  331. PASSWORD_USERNAME=&quot;$1&quot;
  332. PASSWORD_NEW=&quot;$2&quot;
  333. # Do something to change the password
  334. }
  335. function reconfigure_myappname {
  336. echo -n ''
  337. # Do something to delete existing keys/identity and
  338. # generate new ones
  339. }
  340. function upgrade_myappname {
  341. echo -n ''
  342. # Do something to upgrade this app.
  343. # If it's a debian package then it will be maintained by the
  344. # operating system and you don't need anything here
  345. }
  346. function backup_local_myappname {
  347. # If your app has a MariaDB/MySQL database
  348. backup_database_to_usb myappname
  349. # To backup a directory
  350. backup_directory_to_usb ">&lt;http://www.gnu.org/licenses/&gt;.</a></span><a href="http://www.gnu.org/licenses/&gt;.
  351. # 'full' includes your app in the full installation and you
  352. # can also add other variants, separated by spaces. The
  353. # available variants will be detected automatically from the
  354. # app scripts.
  355. VARIANTS='full'
  356. # If you want this to appear on the control panel About screen
  357. SHOW_ON_ABOUT=1
  358. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  359. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  360. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  361. MYAPPNAME_ONION_PORT=[port number]
  362. MYAPPNAME_DB_PASSWORD=
  363. # A directory where the data for this app exists
  364. MYAPP_DATA_DIR=/var/lib/somedirectory
  365. # List of configuration variables used by the app
  366. myappname_variables=(ONION_ONLY
  367. MY_USERNAME
  368. SOME_IMPORTANT_CONFIG_VARIABLE
  369. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  370. MY_FUNKY_AVATAR
  371. MYAPPNAME_ONION_PORT
  372. MYAPPNAME_DB_PASSWORD)
  373. function change_password_myappname {
  374. PASSWORD_USERNAME=&quot;$1&quot;
  375. PASSWORD_NEW=&quot;$2&quot;
  376. # Do something to change the password
  377. }
  378. function reconfigure_myappname {
  379. echo -n ''
  380. # Do something to delete existing keys/identity and
  381. # generate new ones
  382. }
  383. function upgrade_myappname {
  384. echo -n ''
  385. # Do something to upgrade this app.
  386. # If it's a debian package then it will be maintained by the
  387. # operating system and you don't need anything here
  388. }
  389. function backup_local_myappname {
  390. # If your app has a MariaDB/MySQL database
  391. backup_database_to_usb myappname
  392. # To backup a directory
  393. backup_directory_to_usb ">
  394. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  395. # 'full' includes your app in the full installation and you
  396. # can also add other variants, separated by spaces. The
  397. # available variants will be detected automatically from the
  398. # app scripts.
  399. VARIANTS='full'
  400. # If you want this to appear on the control panel About screen
  401. SHOW_ON_ABOUT=1
  402. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  403. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  404. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  405. MYAPPNAME_ONION_PORT=[port number]
  406. MYAPPNAME_DB_PASSWORD=
  407. # A directory where the data for this app exists
  408. MYAPP_DATA_DIR=/var/lib/somedirectory
  409. # List of configuration variables used by the app
  410. myappname_variables=(ONION_ONLY
  411. MY_USERNAME
  412. SOME_IMPORTANT_CONFIG_VARIABLE
  413. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  414. MY_FUNKY_AVATAR
  415. MYAPPNAME_ONION_PORT
  416. MYAPPNAME_DB_PASSWORD)
  417. function change_password_myappname {
  418. PASSWORD_USERNAME=&quot;$1&quot;
  419. PASSWORD_NEW=&quot;$2&quot;
  420. # Do something to change the password
  421. }
  422. function reconfigure_myappname {
  423. echo -n ''
  424. # Do something to delete existing keys/identity and
  425. # generate new ones
  426. }
  427. function upgrade_myappname {
  428. echo -n ''
  429. # Do something to upgrade this app.
  430. # If it's a debian package then it will be maintained by the
  431. # operating system and you don't need anything here
  432. }
  433. function backup_local_myappname {
  434. # If your app has a MariaDB/MySQL database
  435. backup_database_to_usb myappname
  436. # To backup a directory
  437. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  438. # 'full' includes your app in the full installation and you
  439. # can also add other variants, separated by spaces. The
  440. # available variants will be detected automatically from the
  441. # app scripts.
  442. VARIANTS='full'
  443. # If you want this to appear on the control panel About screen
  444. SHOW_ON_ABOUT=1
  445. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  446. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  447. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  448. MYAPPNAME_ONION_PORT=[port number]
  449. MYAPPNAME_DB_PASSWORD=
  450. # A directory where the data for this app exists
  451. MYAPP_DATA_DIR=/var/lib/somedirectory
  452. # List of configuration variables used by the app
  453. myappname_variables=(ONION_ONLY
  454. MY_USERNAME
  455. SOME_IMPORTANT_CONFIG_VARIABLE
  456. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  457. MY_FUNKY_AVATAR
  458. MYAPPNAME_ONION_PORT
  459. MYAPPNAME_DB_PASSWORD)
  460. function change_password_myappname {
  461. PASSWORD_USERNAME=&quot;$1&quot;
  462. PASSWORD_NEW=&quot;$2&quot;
  463. # Do something to change the password
  464. }
  465. function reconfigure_myappname {
  466. echo -n ''
  467. # Do something to delete existing keys/identity and
  468. # generate new ones
  469. }
  470. function upgrade_myappname {
  471. echo -n ''
  472. # Do something to upgrade this app.
  473. # If it's a debian package then it will be maintained by the
  474. # operating system and you don't need anything here
  475. }
  476. function backup_local_myappname {
  477. # If your app has a MariaDB/MySQL database
  478. backup_database_to_usb myappname
  479. # To backup a directory
  480. backup_directory_to_usb ">'full' includes your app in the full installation and you</a></span><a href="http://www.gnu.org/licenses/&gt;.
  481. # 'full' includes your app in the full installation and you
  482. # can also add other variants, separated by spaces. The
  483. # available variants will be detected automatically from the
  484. # app scripts.
  485. VARIANTS='full'
  486. # If you want this to appear on the control panel About screen
  487. SHOW_ON_ABOUT=1
  488. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  489. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  490. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  491. MYAPPNAME_ONION_PORT=[port number]
  492. MYAPPNAME_DB_PASSWORD=
  493. # A directory where the data for this app exists
  494. MYAPP_DATA_DIR=/var/lib/somedirectory
  495. # List of configuration variables used by the app
  496. myappname_variables=(ONION_ONLY
  497. MY_USERNAME
  498. SOME_IMPORTANT_CONFIG_VARIABLE
  499. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  500. MY_FUNKY_AVATAR
  501. MYAPPNAME_ONION_PORT
  502. MYAPPNAME_DB_PASSWORD)
  503. function change_password_myappname {
  504. PASSWORD_USERNAME=&quot;$1&quot;
  505. PASSWORD_NEW=&quot;$2&quot;
  506. # Do something to change the password
  507. }
  508. function reconfigure_myappname {
  509. echo -n ''
  510. # Do something to delete existing keys/identity and
  511. # generate new ones
  512. }
  513. function upgrade_myappname {
  514. echo -n ''
  515. # Do something to upgrade this app.
  516. # If it's a debian package then it will be maintained by the
  517. # operating system and you don't need anything here
  518. }
  519. function backup_local_myappname {
  520. # If your app has a MariaDB/MySQL database
  521. backup_database_to_usb myappname
  522. # To backup a directory
  523. backup_directory_to_usb ">
  524. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  525. # 'full' includes your app in the full installation and you
  526. # can also add other variants, separated by spaces. The
  527. # available variants will be detected automatically from the
  528. # app scripts.
  529. VARIANTS='full'
  530. # If you want this to appear on the control panel About screen
  531. SHOW_ON_ABOUT=1
  532. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  533. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  534. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  535. MYAPPNAME_ONION_PORT=[port number]
  536. MYAPPNAME_DB_PASSWORD=
  537. # A directory where the data for this app exists
  538. MYAPP_DATA_DIR=/var/lib/somedirectory
  539. # List of configuration variables used by the app
  540. myappname_variables=(ONION_ONLY
  541. MY_USERNAME
  542. SOME_IMPORTANT_CONFIG_VARIABLE
  543. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  544. MY_FUNKY_AVATAR
  545. MYAPPNAME_ONION_PORT
  546. MYAPPNAME_DB_PASSWORD)
  547. function change_password_myappname {
  548. PASSWORD_USERNAME=&quot;$1&quot;
  549. PASSWORD_NEW=&quot;$2&quot;
  550. # Do something to change the password
  551. }
  552. function reconfigure_myappname {
  553. echo -n ''
  554. # Do something to delete existing keys/identity and
  555. # generate new ones
  556. }
  557. function upgrade_myappname {
  558. echo -n ''
  559. # Do something to upgrade this app.
  560. # If it's a debian package then it will be maintained by the
  561. # operating system and you don't need anything here
  562. }
  563. function backup_local_myappname {
  564. # If your app has a MariaDB/MySQL database
  565. backup_database_to_usb myappname
  566. # To backup a directory
  567. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  568. # 'full' includes your app in the full installation and you
  569. # can also add other variants, separated by spaces. The
  570. # available variants will be detected automatically from the
  571. # app scripts.
  572. VARIANTS='full'
  573. # If you want this to appear on the control panel About screen
  574. SHOW_ON_ABOUT=1
  575. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  576. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  577. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  578. MYAPPNAME_ONION_PORT=[port number]
  579. MYAPPNAME_DB_PASSWORD=
  580. # A directory where the data for this app exists
  581. MYAPP_DATA_DIR=/var/lib/somedirectory
  582. # List of configuration variables used by the app
  583. myappname_variables=(ONION_ONLY
  584. MY_USERNAME
  585. SOME_IMPORTANT_CONFIG_VARIABLE
  586. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  587. MY_FUNKY_AVATAR
  588. MYAPPNAME_ONION_PORT
  589. MYAPPNAME_DB_PASSWORD)
  590. function change_password_myappname {
  591. PASSWORD_USERNAME=&quot;$1&quot;
  592. PASSWORD_NEW=&quot;$2&quot;
  593. # Do something to change the password
  594. }
  595. function reconfigure_myappname {
  596. echo -n ''
  597. # Do something to delete existing keys/identity and
  598. # generate new ones
  599. }
  600. function upgrade_myappname {
  601. echo -n ''
  602. # Do something to upgrade this app.
  603. # If it's a debian package then it will be maintained by the
  604. # operating system and you don't need anything here
  605. }
  606. function backup_local_myappname {
  607. # If your app has a MariaDB/MySQL database
  608. backup_database_to_usb myappname
  609. # To backup a directory
  610. backup_directory_to_usb ">can also add other variants, separated by spaces. The</a></span><a href="http://www.gnu.org/licenses/&gt;.
  611. # 'full' includes your app in the full installation and you
  612. # can also add other variants, separated by spaces. The
  613. # available variants will be detected automatically from the
  614. # app scripts.
  615. VARIANTS='full'
  616. # If you want this to appear on the control panel About screen
  617. SHOW_ON_ABOUT=1
  618. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  619. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  620. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  621. MYAPPNAME_ONION_PORT=[port number]
  622. MYAPPNAME_DB_PASSWORD=
  623. # A directory where the data for this app exists
  624. MYAPP_DATA_DIR=/var/lib/somedirectory
  625. # List of configuration variables used by the app
  626. myappname_variables=(ONION_ONLY
  627. MY_USERNAME
  628. SOME_IMPORTANT_CONFIG_VARIABLE
  629. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  630. MY_FUNKY_AVATAR
  631. MYAPPNAME_ONION_PORT
  632. MYAPPNAME_DB_PASSWORD)
  633. function change_password_myappname {
  634. PASSWORD_USERNAME=&quot;$1&quot;
  635. PASSWORD_NEW=&quot;$2&quot;
  636. # Do something to change the password
  637. }
  638. function reconfigure_myappname {
  639. echo -n ''
  640. # Do something to delete existing keys/identity and
  641. # generate new ones
  642. }
  643. function upgrade_myappname {
  644. echo -n ''
  645. # Do something to upgrade this app.
  646. # If it's a debian package then it will be maintained by the
  647. # operating system and you don't need anything here
  648. }
  649. function backup_local_myappname {
  650. # If your app has a MariaDB/MySQL database
  651. backup_database_to_usb myappname
  652. # To backup a directory
  653. backup_directory_to_usb ">
  654. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  655. # 'full' includes your app in the full installation and you
  656. # can also add other variants, separated by spaces. The
  657. # available variants will be detected automatically from the
  658. # app scripts.
  659. VARIANTS='full'
  660. # If you want this to appear on the control panel About screen
  661. SHOW_ON_ABOUT=1
  662. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  663. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  664. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  665. MYAPPNAME_ONION_PORT=[port number]
  666. MYAPPNAME_DB_PASSWORD=
  667. # A directory where the data for this app exists
  668. MYAPP_DATA_DIR=/var/lib/somedirectory
  669. # List of configuration variables used by the app
  670. myappname_variables=(ONION_ONLY
  671. MY_USERNAME
  672. SOME_IMPORTANT_CONFIG_VARIABLE
  673. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  674. MY_FUNKY_AVATAR
  675. MYAPPNAME_ONION_PORT
  676. MYAPPNAME_DB_PASSWORD)
  677. function change_password_myappname {
  678. PASSWORD_USERNAME=&quot;$1&quot;
  679. PASSWORD_NEW=&quot;$2&quot;
  680. # Do something to change the password
  681. }
  682. function reconfigure_myappname {
  683. echo -n ''
  684. # Do something to delete existing keys/identity and
  685. # generate new ones
  686. }
  687. function upgrade_myappname {
  688. echo -n ''
  689. # Do something to upgrade this app.
  690. # If it's a debian package then it will be maintained by the
  691. # operating system and you don't need anything here
  692. }
  693. function backup_local_myappname {
  694. # If your app has a MariaDB/MySQL database
  695. backup_database_to_usb myappname
  696. # To backup a directory
  697. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  698. # 'full' includes your app in the full installation and you
  699. # can also add other variants, separated by spaces. The
  700. # available variants will be detected automatically from the
  701. # app scripts.
  702. VARIANTS='full'
  703. # If you want this to appear on the control panel About screen
  704. SHOW_ON_ABOUT=1
  705. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  706. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  707. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  708. MYAPPNAME_ONION_PORT=[port number]
  709. MYAPPNAME_DB_PASSWORD=
  710. # A directory where the data for this app exists
  711. MYAPP_DATA_DIR=/var/lib/somedirectory
  712. # List of configuration variables used by the app
  713. myappname_variables=(ONION_ONLY
  714. MY_USERNAME
  715. SOME_IMPORTANT_CONFIG_VARIABLE
  716. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  717. MY_FUNKY_AVATAR
  718. MYAPPNAME_ONION_PORT
  719. MYAPPNAME_DB_PASSWORD)
  720. function change_password_myappname {
  721. PASSWORD_USERNAME=&quot;$1&quot;
  722. PASSWORD_NEW=&quot;$2&quot;
  723. # Do something to change the password
  724. }
  725. function reconfigure_myappname {
  726. echo -n ''
  727. # Do something to delete existing keys/identity and
  728. # generate new ones
  729. }
  730. function upgrade_myappname {
  731. echo -n ''
  732. # Do something to upgrade this app.
  733. # If it's a debian package then it will be maintained by the
  734. # operating system and you don't need anything here
  735. }
  736. function backup_local_myappname {
  737. # If your app has a MariaDB/MySQL database
  738. backup_database_to_usb myappname
  739. # To backup a directory
  740. backup_directory_to_usb ">available variants will be detected automatically from the</a></span><a href="http://www.gnu.org/licenses/&gt;.
  741. # 'full' includes your app in the full installation and you
  742. # can also add other variants, separated by spaces. The
  743. # available variants will be detected automatically from the
  744. # app scripts.
  745. VARIANTS='full'
  746. # If you want this to appear on the control panel About screen
  747. SHOW_ON_ABOUT=1
  748. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  749. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  750. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  751. MYAPPNAME_ONION_PORT=[port number]
  752. MYAPPNAME_DB_PASSWORD=
  753. # A directory where the data for this app exists
  754. MYAPP_DATA_DIR=/var/lib/somedirectory
  755. # List of configuration variables used by the app
  756. myappname_variables=(ONION_ONLY
  757. MY_USERNAME
  758. SOME_IMPORTANT_CONFIG_VARIABLE
  759. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  760. MY_FUNKY_AVATAR
  761. MYAPPNAME_ONION_PORT
  762. MYAPPNAME_DB_PASSWORD)
  763. function change_password_myappname {
  764. PASSWORD_USERNAME=&quot;$1&quot;
  765. PASSWORD_NEW=&quot;$2&quot;
  766. # Do something to change the password
  767. }
  768. function reconfigure_myappname {
  769. echo -n ''
  770. # Do something to delete existing keys/identity and
  771. # generate new ones
  772. }
  773. function upgrade_myappname {
  774. echo -n ''
  775. # Do something to upgrade this app.
  776. # If it's a debian package then it will be maintained by the
  777. # operating system and you don't need anything here
  778. }
  779. function backup_local_myappname {
  780. # If your app has a MariaDB/MySQL database
  781. backup_database_to_usb myappname
  782. # To backup a directory
  783. backup_directory_to_usb ">
  784. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  785. # 'full' includes your app in the full installation and you
  786. # can also add other variants, separated by spaces. The
  787. # available variants will be detected automatically from the
  788. # app scripts.
  789. VARIANTS='full'
  790. # If you want this to appear on the control panel About screen
  791. SHOW_ON_ABOUT=1
  792. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  793. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  794. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  795. MYAPPNAME_ONION_PORT=[port number]
  796. MYAPPNAME_DB_PASSWORD=
  797. # A directory where the data for this app exists
  798. MYAPP_DATA_DIR=/var/lib/somedirectory
  799. # List of configuration variables used by the app
  800. myappname_variables=(ONION_ONLY
  801. MY_USERNAME
  802. SOME_IMPORTANT_CONFIG_VARIABLE
  803. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  804. MY_FUNKY_AVATAR
  805. MYAPPNAME_ONION_PORT
  806. MYAPPNAME_DB_PASSWORD)
  807. function change_password_myappname {
  808. PASSWORD_USERNAME=&quot;$1&quot;
  809. PASSWORD_NEW=&quot;$2&quot;
  810. # Do something to change the password
  811. }
  812. function reconfigure_myappname {
  813. echo -n ''
  814. # Do something to delete existing keys/identity and
  815. # generate new ones
  816. }
  817. function upgrade_myappname {
  818. echo -n ''
  819. # Do something to upgrade this app.
  820. # If it's a debian package then it will be maintained by the
  821. # operating system and you don't need anything here
  822. }
  823. function backup_local_myappname {
  824. # If your app has a MariaDB/MySQL database
  825. backup_database_to_usb myappname
  826. # To backup a directory
  827. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  828. # 'full' includes your app in the full installation and you
  829. # can also add other variants, separated by spaces. The
  830. # available variants will be detected automatically from the
  831. # app scripts.
  832. VARIANTS='full'
  833. # If you want this to appear on the control panel About screen
  834. SHOW_ON_ABOUT=1
  835. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  836. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  837. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  838. MYAPPNAME_ONION_PORT=[port number]
  839. MYAPPNAME_DB_PASSWORD=
  840. # A directory where the data for this app exists
  841. MYAPP_DATA_DIR=/var/lib/somedirectory
  842. # List of configuration variables used by the app
  843. myappname_variables=(ONION_ONLY
  844. MY_USERNAME
  845. SOME_IMPORTANT_CONFIG_VARIABLE
  846. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  847. MY_FUNKY_AVATAR
  848. MYAPPNAME_ONION_PORT
  849. MYAPPNAME_DB_PASSWORD)
  850. function change_password_myappname {
  851. PASSWORD_USERNAME=&quot;$1&quot;
  852. PASSWORD_NEW=&quot;$2&quot;
  853. # Do something to change the password
  854. }
  855. function reconfigure_myappname {
  856. echo -n ''
  857. # Do something to delete existing keys/identity and
  858. # generate new ones
  859. }
  860. function upgrade_myappname {
  861. echo -n ''
  862. # Do something to upgrade this app.
  863. # If it's a debian package then it will be maintained by the
  864. # operating system and you don't need anything here
  865. }
  866. function backup_local_myappname {
  867. # If your app has a MariaDB/MySQL database
  868. backup_database_to_usb myappname
  869. # To backup a directory
  870. backup_directory_to_usb ">app scripts.</a></span><a href="http://www.gnu.org/licenses/&gt;.
  871. # 'full' includes your app in the full installation and you
  872. # can also add other variants, separated by spaces. The
  873. # available variants will be detected automatically from the
  874. # app scripts.
  875. VARIANTS='full'
  876. # If you want this to appear on the control panel About screen
  877. SHOW_ON_ABOUT=1
  878. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  879. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  880. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  881. MYAPPNAME_ONION_PORT=[port number]
  882. MYAPPNAME_DB_PASSWORD=
  883. # A directory where the data for this app exists
  884. MYAPP_DATA_DIR=/var/lib/somedirectory
  885. # List of configuration variables used by the app
  886. myappname_variables=(ONION_ONLY
  887. MY_USERNAME
  888. SOME_IMPORTANT_CONFIG_VARIABLE
  889. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  890. MY_FUNKY_AVATAR
  891. MYAPPNAME_ONION_PORT
  892. MYAPPNAME_DB_PASSWORD)
  893. function change_password_myappname {
  894. PASSWORD_USERNAME=&quot;$1&quot;
  895. PASSWORD_NEW=&quot;$2&quot;
  896. # Do something to change the password
  897. }
  898. function reconfigure_myappname {
  899. echo -n ''
  900. # Do something to delete existing keys/identity and
  901. # generate new ones
  902. }
  903. function upgrade_myappname {
  904. echo -n ''
  905. # Do something to upgrade this app.
  906. # If it's a debian package then it will be maintained by the
  907. # operating system and you don't need anything here
  908. }
  909. function backup_local_myappname {
  910. # If your app has a MariaDB/MySQL database
  911. backup_database_to_usb myappname
  912. # To backup a directory
  913. backup_directory_to_usb ">
  914. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  915. # 'full' includes your app in the full installation and you
  916. # can also add other variants, separated by spaces. The
  917. # available variants will be detected automatically from the
  918. # app scripts.
  919. VARIANTS='full'
  920. # If you want this to appear on the control panel About screen
  921. SHOW_ON_ABOUT=1
  922. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  923. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  924. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  925. MYAPPNAME_ONION_PORT=[port number]
  926. MYAPPNAME_DB_PASSWORD=
  927. # A directory where the data for this app exists
  928. MYAPP_DATA_DIR=/var/lib/somedirectory
  929. # List of configuration variables used by the app
  930. myappname_variables=(ONION_ONLY
  931. MY_USERNAME
  932. SOME_IMPORTANT_CONFIG_VARIABLE
  933. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  934. MY_FUNKY_AVATAR
  935. MYAPPNAME_ONION_PORT
  936. MYAPPNAME_DB_PASSWORD)
  937. function change_password_myappname {
  938. PASSWORD_USERNAME=&quot;$1&quot;
  939. PASSWORD_NEW=&quot;$2&quot;
  940. # Do something to change the password
  941. }
  942. function reconfigure_myappname {
  943. echo -n ''
  944. # Do something to delete existing keys/identity and
  945. # generate new ones
  946. }
  947. function upgrade_myappname {
  948. echo -n ''
  949. # Do something to upgrade this app.
  950. # If it's a debian package then it will be maintained by the
  951. # operating system and you don't need anything here
  952. }
  953. function backup_local_myappname {
  954. # If your app has a MariaDB/MySQL database
  955. backup_database_to_usb myappname
  956. # To backup a directory
  957. backup_directory_to_usb ">VARIANTS</a></span><a href="http://www.gnu.org/licenses/&gt;.
  958. # 'full' includes your app in the full installation and you
  959. # can also add other variants, separated by spaces. The
  960. # available variants will be detected automatically from the
  961. # app scripts.
  962. VARIANTS='full'
  963. # If you want this to appear on the control panel About screen
  964. SHOW_ON_ABOUT=1
  965. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  966. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  967. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  968. MYAPPNAME_ONION_PORT=[port number]
  969. MYAPPNAME_DB_PASSWORD=
  970. # A directory where the data for this app exists
  971. MYAPP_DATA_DIR=/var/lib/somedirectory
  972. # List of configuration variables used by the app
  973. myappname_variables=(ONION_ONLY
  974. MY_USERNAME
  975. SOME_IMPORTANT_CONFIG_VARIABLE
  976. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  977. MY_FUNKY_AVATAR
  978. MYAPPNAME_ONION_PORT
  979. MYAPPNAME_DB_PASSWORD)
  980. function change_password_myappname {
  981. PASSWORD_USERNAME=&quot;$1&quot;
  982. PASSWORD_NEW=&quot;$2&quot;
  983. # Do something to change the password
  984. }
  985. function reconfigure_myappname {
  986. echo -n ''
  987. # Do something to delete existing keys/identity and
  988. # generate new ones
  989. }
  990. function upgrade_myappname {
  991. echo -n ''
  992. # Do something to upgrade this app.
  993. # If it's a debian package then it will be maintained by the
  994. # operating system and you don't need anything here
  995. }
  996. function backup_local_myappname {
  997. # If your app has a MariaDB/MySQL database
  998. backup_database_to_usb myappname
  999. # To backup a directory
  1000. backup_directory_to_usb ">=</a><span class="org-string"><a href="http://www.gnu.org/licenses/&gt;.
  1001. # 'full' includes your app in the full installation and you
  1002. # can also add other variants, separated by spaces. The
  1003. # available variants will be detected automatically from the
  1004. # app scripts.
  1005. VARIANTS='full'
  1006. # If you want this to appear on the control panel About screen
  1007. SHOW_ON_ABOUT=1
  1008. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1009. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1010. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1011. MYAPPNAME_ONION_PORT=[port number]
  1012. MYAPPNAME_DB_PASSWORD=
  1013. # A directory where the data for this app exists
  1014. MYAPP_DATA_DIR=/var/lib/somedirectory
  1015. # List of configuration variables used by the app
  1016. myappname_variables=(ONION_ONLY
  1017. MY_USERNAME
  1018. SOME_IMPORTANT_CONFIG_VARIABLE
  1019. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1020. MY_FUNKY_AVATAR
  1021. MYAPPNAME_ONION_PORT
  1022. MYAPPNAME_DB_PASSWORD)
  1023. function change_password_myappname {
  1024. PASSWORD_USERNAME=&quot;$1&quot;
  1025. PASSWORD_NEW=&quot;$2&quot;
  1026. # Do something to change the password
  1027. }
  1028. function reconfigure_myappname {
  1029. echo -n ''
  1030. # Do something to delete existing keys/identity and
  1031. # generate new ones
  1032. }
  1033. function upgrade_myappname {
  1034. echo -n ''
  1035. # Do something to upgrade this app.
  1036. # If it's a debian package then it will be maintained by the
  1037. # operating system and you don't need anything here
  1038. }
  1039. function backup_local_myappname {
  1040. # If your app has a MariaDB/MySQL database
  1041. backup_database_to_usb myappname
  1042. # To backup a directory
  1043. backup_directory_to_usb ">'full'</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1044. # 'full' includes your app in the full installation and you
  1045. # can also add other variants, separated by spaces. The
  1046. # available variants will be detected automatically from the
  1047. # app scripts.
  1048. VARIANTS='full'
  1049. # If you want this to appear on the control panel About screen
  1050. SHOW_ON_ABOUT=1
  1051. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1052. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1053. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1054. MYAPPNAME_ONION_PORT=[port number]
  1055. MYAPPNAME_DB_PASSWORD=
  1056. # A directory where the data for this app exists
  1057. MYAPP_DATA_DIR=/var/lib/somedirectory
  1058. # List of configuration variables used by the app
  1059. myappname_variables=(ONION_ONLY
  1060. MY_USERNAME
  1061. SOME_IMPORTANT_CONFIG_VARIABLE
  1062. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1063. MY_FUNKY_AVATAR
  1064. MYAPPNAME_ONION_PORT
  1065. MYAPPNAME_DB_PASSWORD)
  1066. function change_password_myappname {
  1067. PASSWORD_USERNAME=&quot;$1&quot;
  1068. PASSWORD_NEW=&quot;$2&quot;
  1069. # Do something to change the password
  1070. }
  1071. function reconfigure_myappname {
  1072. echo -n ''
  1073. # Do something to delete existing keys/identity and
  1074. # generate new ones
  1075. }
  1076. function upgrade_myappname {
  1077. echo -n ''
  1078. # Do something to upgrade this app.
  1079. # If it's a debian package then it will be maintained by the
  1080. # operating system and you don't need anything here
  1081. }
  1082. function backup_local_myappname {
  1083. # If your app has a MariaDB/MySQL database
  1084. backup_database_to_usb myappname
  1085. # To backup a directory
  1086. backup_directory_to_usb ">
  1087. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  1088. # 'full' includes your app in the full installation and you
  1089. # can also add other variants, separated by spaces. The
  1090. # available variants will be detected automatically from the
  1091. # app scripts.
  1092. VARIANTS='full'
  1093. # If you want this to appear on the control panel About screen
  1094. SHOW_ON_ABOUT=1
  1095. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1096. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1097. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1098. MYAPPNAME_ONION_PORT=[port number]
  1099. MYAPPNAME_DB_PASSWORD=
  1100. # A directory where the data for this app exists
  1101. MYAPP_DATA_DIR=/var/lib/somedirectory
  1102. # List of configuration variables used by the app
  1103. myappname_variables=(ONION_ONLY
  1104. MY_USERNAME
  1105. SOME_IMPORTANT_CONFIG_VARIABLE
  1106. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1107. MY_FUNKY_AVATAR
  1108. MYAPPNAME_ONION_PORT
  1109. MYAPPNAME_DB_PASSWORD)
  1110. function change_password_myappname {
  1111. PASSWORD_USERNAME=&quot;$1&quot;
  1112. PASSWORD_NEW=&quot;$2&quot;
  1113. # Do something to change the password
  1114. }
  1115. function reconfigure_myappname {
  1116. echo -n ''
  1117. # Do something to delete existing keys/identity and
  1118. # generate new ones
  1119. }
  1120. function upgrade_myappname {
  1121. echo -n ''
  1122. # Do something to upgrade this app.
  1123. # If it's a debian package then it will be maintained by the
  1124. # operating system and you don't need anything here
  1125. }
  1126. function backup_local_myappname {
  1127. # If your app has a MariaDB/MySQL database
  1128. backup_database_to_usb myappname
  1129. # To backup a directory
  1130. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  1131. # 'full' includes your app in the full installation and you
  1132. # can also add other variants, separated by spaces. The
  1133. # available variants will be detected automatically from the
  1134. # app scripts.
  1135. VARIANTS='full'
  1136. # If you want this to appear on the control panel About screen
  1137. SHOW_ON_ABOUT=1
  1138. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1139. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1140. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1141. MYAPPNAME_ONION_PORT=[port number]
  1142. MYAPPNAME_DB_PASSWORD=
  1143. # A directory where the data for this app exists
  1144. MYAPP_DATA_DIR=/var/lib/somedirectory
  1145. # List of configuration variables used by the app
  1146. myappname_variables=(ONION_ONLY
  1147. MY_USERNAME
  1148. SOME_IMPORTANT_CONFIG_VARIABLE
  1149. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1150. MY_FUNKY_AVATAR
  1151. MYAPPNAME_ONION_PORT
  1152. MYAPPNAME_DB_PASSWORD)
  1153. function change_password_myappname {
  1154. PASSWORD_USERNAME=&quot;$1&quot;
  1155. PASSWORD_NEW=&quot;$2&quot;
  1156. # Do something to change the password
  1157. }
  1158. function reconfigure_myappname {
  1159. echo -n ''
  1160. # Do something to delete existing keys/identity and
  1161. # generate new ones
  1162. }
  1163. function upgrade_myappname {
  1164. echo -n ''
  1165. # Do something to upgrade this app.
  1166. # If it's a debian package then it will be maintained by the
  1167. # operating system and you don't need anything here
  1168. }
  1169. function backup_local_myappname {
  1170. # If your app has a MariaDB/MySQL database
  1171. backup_database_to_usb myappname
  1172. # To backup a directory
  1173. backup_directory_to_usb ">If you want this to appear on the control panel About screen</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1174. # 'full' includes your app in the full installation and you
  1175. # can also add other variants, separated by spaces. The
  1176. # available variants will be detected automatically from the
  1177. # app scripts.
  1178. VARIANTS='full'
  1179. # If you want this to appear on the control panel About screen
  1180. SHOW_ON_ABOUT=1
  1181. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1182. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1183. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1184. MYAPPNAME_ONION_PORT=[port number]
  1185. MYAPPNAME_DB_PASSWORD=
  1186. # A directory where the data for this app exists
  1187. MYAPP_DATA_DIR=/var/lib/somedirectory
  1188. # List of configuration variables used by the app
  1189. myappname_variables=(ONION_ONLY
  1190. MY_USERNAME
  1191. SOME_IMPORTANT_CONFIG_VARIABLE
  1192. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1193. MY_FUNKY_AVATAR
  1194. MYAPPNAME_ONION_PORT
  1195. MYAPPNAME_DB_PASSWORD)
  1196. function change_password_myappname {
  1197. PASSWORD_USERNAME=&quot;$1&quot;
  1198. PASSWORD_NEW=&quot;$2&quot;
  1199. # Do something to change the password
  1200. }
  1201. function reconfigure_myappname {
  1202. echo -n ''
  1203. # Do something to delete existing keys/identity and
  1204. # generate new ones
  1205. }
  1206. function upgrade_myappname {
  1207. echo -n ''
  1208. # Do something to upgrade this app.
  1209. # If it's a debian package then it will be maintained by the
  1210. # operating system and you don't need anything here
  1211. }
  1212. function backup_local_myappname {
  1213. # If your app has a MariaDB/MySQL database
  1214. backup_database_to_usb myappname
  1215. # To backup a directory
  1216. backup_directory_to_usb ">
  1217. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  1218. # 'full' includes your app in the full installation and you
  1219. # can also add other variants, separated by spaces. The
  1220. # available variants will be detected automatically from the
  1221. # app scripts.
  1222. VARIANTS='full'
  1223. # If you want this to appear on the control panel About screen
  1224. SHOW_ON_ABOUT=1
  1225. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1226. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1227. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1228. MYAPPNAME_ONION_PORT=[port number]
  1229. MYAPPNAME_DB_PASSWORD=
  1230. # A directory where the data for this app exists
  1231. MYAPP_DATA_DIR=/var/lib/somedirectory
  1232. # List of configuration variables used by the app
  1233. myappname_variables=(ONION_ONLY
  1234. MY_USERNAME
  1235. SOME_IMPORTANT_CONFIG_VARIABLE
  1236. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1237. MY_FUNKY_AVATAR
  1238. MYAPPNAME_ONION_PORT
  1239. MYAPPNAME_DB_PASSWORD)
  1240. function change_password_myappname {
  1241. PASSWORD_USERNAME=&quot;$1&quot;
  1242. PASSWORD_NEW=&quot;$2&quot;
  1243. # Do something to change the password
  1244. }
  1245. function reconfigure_myappname {
  1246. echo -n ''
  1247. # Do something to delete existing keys/identity and
  1248. # generate new ones
  1249. }
  1250. function upgrade_myappname {
  1251. echo -n ''
  1252. # Do something to upgrade this app.
  1253. # If it's a debian package then it will be maintained by the
  1254. # operating system and you don't need anything here
  1255. }
  1256. function backup_local_myappname {
  1257. # If your app has a MariaDB/MySQL database
  1258. backup_database_to_usb myappname
  1259. # To backup a directory
  1260. backup_directory_to_usb ">SHOW_ON_ABOUT</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1261. # 'full' includes your app in the full installation and you
  1262. # can also add other variants, separated by spaces. The
  1263. # available variants will be detected automatically from the
  1264. # app scripts.
  1265. VARIANTS='full'
  1266. # If you want this to appear on the control panel About screen
  1267. SHOW_ON_ABOUT=1
  1268. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1269. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1270. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1271. MYAPPNAME_ONION_PORT=[port number]
  1272. MYAPPNAME_DB_PASSWORD=
  1273. # A directory where the data for this app exists
  1274. MYAPP_DATA_DIR=/var/lib/somedirectory
  1275. # List of configuration variables used by the app
  1276. myappname_variables=(ONION_ONLY
  1277. MY_USERNAME
  1278. SOME_IMPORTANT_CONFIG_VARIABLE
  1279. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1280. MY_FUNKY_AVATAR
  1281. MYAPPNAME_ONION_PORT
  1282. MYAPPNAME_DB_PASSWORD)
  1283. function change_password_myappname {
  1284. PASSWORD_USERNAME=&quot;$1&quot;
  1285. PASSWORD_NEW=&quot;$2&quot;
  1286. # Do something to change the password
  1287. }
  1288. function reconfigure_myappname {
  1289. echo -n ''
  1290. # Do something to delete existing keys/identity and
  1291. # generate new ones
  1292. }
  1293. function upgrade_myappname {
  1294. echo -n ''
  1295. # Do something to upgrade this app.
  1296. # If it's a debian package then it will be maintained by the
  1297. # operating system and you don't need anything here
  1298. }
  1299. function backup_local_myappname {
  1300. # If your app has a MariaDB/MySQL database
  1301. backup_database_to_usb myappname
  1302. # To backup a directory
  1303. backup_directory_to_usb ">=1
  1304. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  1305. # 'full' includes your app in the full installation and you
  1306. # can also add other variants, separated by spaces. The
  1307. # available variants will be detected automatically from the
  1308. # app scripts.
  1309. VARIANTS='full'
  1310. # If you want this to appear on the control panel About screen
  1311. SHOW_ON_ABOUT=1
  1312. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1313. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1314. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1315. MYAPPNAME_ONION_PORT=[port number]
  1316. MYAPPNAME_DB_PASSWORD=
  1317. # A directory where the data for this app exists
  1318. MYAPP_DATA_DIR=/var/lib/somedirectory
  1319. # List of configuration variables used by the app
  1320. myappname_variables=(ONION_ONLY
  1321. MY_USERNAME
  1322. SOME_IMPORTANT_CONFIG_VARIABLE
  1323. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1324. MY_FUNKY_AVATAR
  1325. MYAPPNAME_ONION_PORT
  1326. MYAPPNAME_DB_PASSWORD)
  1327. function change_password_myappname {
  1328. PASSWORD_USERNAME=&quot;$1&quot;
  1329. PASSWORD_NEW=&quot;$2&quot;
  1330. # Do something to change the password
  1331. }
  1332. function reconfigure_myappname {
  1333. echo -n ''
  1334. # Do something to delete existing keys/identity and
  1335. # generate new ones
  1336. }
  1337. function upgrade_myappname {
  1338. echo -n ''
  1339. # Do something to upgrade this app.
  1340. # If it's a debian package then it will be maintained by the
  1341. # operating system and you don't need anything here
  1342. }
  1343. function backup_local_myappname {
  1344. # If your app has a MariaDB/MySQL database
  1345. backup_database_to_usb myappname
  1346. # To backup a directory
  1347. backup_directory_to_usb ">SOME_IMPORTANT_CONFIG_VARIABLE</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1348. # 'full' includes your app in the full installation and you
  1349. # can also add other variants, separated by spaces. The
  1350. # available variants will be detected automatically from the
  1351. # app scripts.
  1352. VARIANTS='full'
  1353. # If you want this to appear on the control panel About screen
  1354. SHOW_ON_ABOUT=1
  1355. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1356. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1357. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1358. MYAPPNAME_ONION_PORT=[port number]
  1359. MYAPPNAME_DB_PASSWORD=
  1360. # A directory where the data for this app exists
  1361. MYAPP_DATA_DIR=/var/lib/somedirectory
  1362. # List of configuration variables used by the app
  1363. myappname_variables=(ONION_ONLY
  1364. MY_USERNAME
  1365. SOME_IMPORTANT_CONFIG_VARIABLE
  1366. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1367. MY_FUNKY_AVATAR
  1368. MYAPPNAME_ONION_PORT
  1369. MYAPPNAME_DB_PASSWORD)
  1370. function change_password_myappname {
  1371. PASSWORD_USERNAME=&quot;$1&quot;
  1372. PASSWORD_NEW=&quot;$2&quot;
  1373. # Do something to change the password
  1374. }
  1375. function reconfigure_myappname {
  1376. echo -n ''
  1377. # Do something to delete existing keys/identity and
  1378. # generate new ones
  1379. }
  1380. function upgrade_myappname {
  1381. echo -n ''
  1382. # Do something to upgrade this app.
  1383. # If it's a debian package then it will be maintained by the
  1384. # operating system and you don't need anything here
  1385. }
  1386. function backup_local_myappname {
  1387. # If your app has a MariaDB/MySQL database
  1388. backup_database_to_usb myappname
  1389. # To backup a directory
  1390. backup_directory_to_usb ">=</a><span class="org-string"><a href="http://www.gnu.org/licenses/&gt;.
  1391. # 'full' includes your app in the full installation and you
  1392. # can also add other variants, separated by spaces. The
  1393. # available variants will be detected automatically from the
  1394. # app scripts.
  1395. VARIANTS='full'
  1396. # If you want this to appear on the control panel About screen
  1397. SHOW_ON_ABOUT=1
  1398. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1399. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1400. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1401. MYAPPNAME_ONION_PORT=[port number]
  1402. MYAPPNAME_DB_PASSWORD=
  1403. # A directory where the data for this app exists
  1404. MYAPP_DATA_DIR=/var/lib/somedirectory
  1405. # List of configuration variables used by the app
  1406. myappname_variables=(ONION_ONLY
  1407. MY_USERNAME
  1408. SOME_IMPORTANT_CONFIG_VARIABLE
  1409. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1410. MY_FUNKY_AVATAR
  1411. MYAPPNAME_ONION_PORT
  1412. MYAPPNAME_DB_PASSWORD)
  1413. function change_password_myappname {
  1414. PASSWORD_USERNAME=&quot;$1&quot;
  1415. PASSWORD_NEW=&quot;$2&quot;
  1416. # Do something to change the password
  1417. }
  1418. function reconfigure_myappname {
  1419. echo -n ''
  1420. # Do something to delete existing keys/identity and
  1421. # generate new ones
  1422. }
  1423. function upgrade_myappname {
  1424. echo -n ''
  1425. # Do something to upgrade this app.
  1426. # If it's a debian package then it will be maintained by the
  1427. # operating system and you don't need anything here
  1428. }
  1429. function backup_local_myappname {
  1430. # If your app has a MariaDB/MySQL database
  1431. backup_database_to_usb myappname
  1432. # To backup a directory
  1433. backup_directory_to_usb ">'some important value'</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1434. # 'full' includes your app in the full installation and you
  1435. # can also add other variants, separated by spaces. The
  1436. # available variants will be detected automatically from the
  1437. # app scripts.
  1438. VARIANTS='full'
  1439. # If you want this to appear on the control panel About screen
  1440. SHOW_ON_ABOUT=1
  1441. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1442. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1443. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1444. MYAPPNAME_ONION_PORT=[port number]
  1445. MYAPPNAME_DB_PASSWORD=
  1446. # A directory where the data for this app exists
  1447. MYAPP_DATA_DIR=/var/lib/somedirectory
  1448. # List of configuration variables used by the app
  1449. myappname_variables=(ONION_ONLY
  1450. MY_USERNAME
  1451. SOME_IMPORTANT_CONFIG_VARIABLE
  1452. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1453. MY_FUNKY_AVATAR
  1454. MYAPPNAME_ONION_PORT
  1455. MYAPPNAME_DB_PASSWORD)
  1456. function change_password_myappname {
  1457. PASSWORD_USERNAME=&quot;$1&quot;
  1458. PASSWORD_NEW=&quot;$2&quot;
  1459. # Do something to change the password
  1460. }
  1461. function reconfigure_myappname {
  1462. echo -n ''
  1463. # Do something to delete existing keys/identity and
  1464. # generate new ones
  1465. }
  1466. function upgrade_myappname {
  1467. echo -n ''
  1468. # Do something to upgrade this app.
  1469. # If it's a debian package then it will be maintained by the
  1470. # operating system and you don't need anything here
  1471. }
  1472. function backup_local_myappname {
  1473. # If your app has a MariaDB/MySQL database
  1474. backup_database_to_usb myappname
  1475. # To backup a directory
  1476. backup_directory_to_usb ">
  1477. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  1478. # 'full' includes your app in the full installation and you
  1479. # can also add other variants, separated by spaces. The
  1480. # available variants will be detected automatically from the
  1481. # app scripts.
  1482. VARIANTS='full'
  1483. # If you want this to appear on the control panel About screen
  1484. SHOW_ON_ABOUT=1
  1485. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1486. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1487. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1488. MYAPPNAME_ONION_PORT=[port number]
  1489. MYAPPNAME_DB_PASSWORD=
  1490. # A directory where the data for this app exists
  1491. MYAPP_DATA_DIR=/var/lib/somedirectory
  1492. # List of configuration variables used by the app
  1493. myappname_variables=(ONION_ONLY
  1494. MY_USERNAME
  1495. SOME_IMPORTANT_CONFIG_VARIABLE
  1496. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1497. MY_FUNKY_AVATAR
  1498. MYAPPNAME_ONION_PORT
  1499. MYAPPNAME_DB_PASSWORD)
  1500. function change_password_myappname {
  1501. PASSWORD_USERNAME=&quot;$1&quot;
  1502. PASSWORD_NEW=&quot;$2&quot;
  1503. # Do something to change the password
  1504. }
  1505. function reconfigure_myappname {
  1506. echo -n ''
  1507. # Do something to delete existing keys/identity and
  1508. # generate new ones
  1509. }
  1510. function upgrade_myappname {
  1511. echo -n ''
  1512. # Do something to upgrade this app.
  1513. # If it's a debian package then it will be maintained by the
  1514. # operating system and you don't need anything here
  1515. }
  1516. function backup_local_myappname {
  1517. # If your app has a MariaDB/MySQL database
  1518. backup_database_to_usb myappname
  1519. # To backup a directory
  1520. backup_directory_to_usb ">ANOTHER_IMPORTANT_CONFIG_VARIABLE</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1521. # 'full' includes your app in the full installation and you
  1522. # can also add other variants, separated by spaces. The
  1523. # available variants will be detected automatically from the
  1524. # app scripts.
  1525. VARIANTS='full'
  1526. # If you want this to appear on the control panel About screen
  1527. SHOW_ON_ABOUT=1
  1528. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1529. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1530. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1531. MYAPPNAME_ONION_PORT=[port number]
  1532. MYAPPNAME_DB_PASSWORD=
  1533. # A directory where the data for this app exists
  1534. MYAPP_DATA_DIR=/var/lib/somedirectory
  1535. # List of configuration variables used by the app
  1536. myappname_variables=(ONION_ONLY
  1537. MY_USERNAME
  1538. SOME_IMPORTANT_CONFIG_VARIABLE
  1539. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1540. MY_FUNKY_AVATAR
  1541. MYAPPNAME_ONION_PORT
  1542. MYAPPNAME_DB_PASSWORD)
  1543. function change_password_myappname {
  1544. PASSWORD_USERNAME=&quot;$1&quot;
  1545. PASSWORD_NEW=&quot;$2&quot;
  1546. # Do something to change the password
  1547. }
  1548. function reconfigure_myappname {
  1549. echo -n ''
  1550. # Do something to delete existing keys/identity and
  1551. # generate new ones
  1552. }
  1553. function upgrade_myappname {
  1554. echo -n ''
  1555. # Do something to upgrade this app.
  1556. # If it's a debian package then it will be maintained by the
  1557. # operating system and you don't need anything here
  1558. }
  1559. function backup_local_myappname {
  1560. # If your app has a MariaDB/MySQL database
  1561. backup_database_to_usb myappname
  1562. # To backup a directory
  1563. backup_directory_to_usb ">=</a><span class="org-string"><a href="http://www.gnu.org/licenses/&gt;.
  1564. # 'full' includes your app in the full installation and you
  1565. # can also add other variants, separated by spaces. The
  1566. # available variants will be detected automatically from the
  1567. # app scripts.
  1568. VARIANTS='full'
  1569. # If you want this to appear on the control panel About screen
  1570. SHOW_ON_ABOUT=1
  1571. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1572. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1573. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1574. MYAPPNAME_ONION_PORT=[port number]
  1575. MYAPPNAME_DB_PASSWORD=
  1576. # A directory where the data for this app exists
  1577. MYAPP_DATA_DIR=/var/lib/somedirectory
  1578. # List of configuration variables used by the app
  1579. myappname_variables=(ONION_ONLY
  1580. MY_USERNAME
  1581. SOME_IMPORTANT_CONFIG_VARIABLE
  1582. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1583. MY_FUNKY_AVATAR
  1584. MYAPPNAME_ONION_PORT
  1585. MYAPPNAME_DB_PASSWORD)
  1586. function change_password_myappname {
  1587. PASSWORD_USERNAME=&quot;$1&quot;
  1588. PASSWORD_NEW=&quot;$2&quot;
  1589. # Do something to change the password
  1590. }
  1591. function reconfigure_myappname {
  1592. echo -n ''
  1593. # Do something to delete existing keys/identity and
  1594. # generate new ones
  1595. }
  1596. function upgrade_myappname {
  1597. echo -n ''
  1598. # Do something to upgrade this app.
  1599. # If it's a debian package then it will be maintained by the
  1600. # operating system and you don't need anything here
  1601. }
  1602. function backup_local_myappname {
  1603. # If your app has a MariaDB/MySQL database
  1604. backup_database_to_usb myappname
  1605. # To backup a directory
  1606. backup_directory_to_usb ">'foo'</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1607. # 'full' includes your app in the full installation and you
  1608. # can also add other variants, separated by spaces. The
  1609. # available variants will be detected automatically from the
  1610. # app scripts.
  1611. VARIANTS='full'
  1612. # If you want this to appear on the control panel About screen
  1613. SHOW_ON_ABOUT=1
  1614. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1615. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1616. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1617. MYAPPNAME_ONION_PORT=[port number]
  1618. MYAPPNAME_DB_PASSWORD=
  1619. # A directory where the data for this app exists
  1620. MYAPP_DATA_DIR=/var/lib/somedirectory
  1621. # List of configuration variables used by the app
  1622. myappname_variables=(ONION_ONLY
  1623. MY_USERNAME
  1624. SOME_IMPORTANT_CONFIG_VARIABLE
  1625. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1626. MY_FUNKY_AVATAR
  1627. MYAPPNAME_ONION_PORT
  1628. MYAPPNAME_DB_PASSWORD)
  1629. function change_password_myappname {
  1630. PASSWORD_USERNAME=&quot;$1&quot;
  1631. PASSWORD_NEW=&quot;$2&quot;
  1632. # Do something to change the password
  1633. }
  1634. function reconfigure_myappname {
  1635. echo -n ''
  1636. # Do something to delete existing keys/identity and
  1637. # generate new ones
  1638. }
  1639. function upgrade_myappname {
  1640. echo -n ''
  1641. # Do something to upgrade this app.
  1642. # If it's a debian package then it will be maintained by the
  1643. # operating system and you don't need anything here
  1644. }
  1645. function backup_local_myappname {
  1646. # If your app has a MariaDB/MySQL database
  1647. backup_database_to_usb myappname
  1648. # To backup a directory
  1649. backup_directory_to_usb ">
  1650. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  1651. # 'full' includes your app in the full installation and you
  1652. # can also add other variants, separated by spaces. The
  1653. # available variants will be detected automatically from the
  1654. # app scripts.
  1655. VARIANTS='full'
  1656. # If you want this to appear on the control panel About screen
  1657. SHOW_ON_ABOUT=1
  1658. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1659. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1660. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1661. MYAPPNAME_ONION_PORT=[port number]
  1662. MYAPPNAME_DB_PASSWORD=
  1663. # A directory where the data for this app exists
  1664. MYAPP_DATA_DIR=/var/lib/somedirectory
  1665. # List of configuration variables used by the app
  1666. myappname_variables=(ONION_ONLY
  1667. MY_USERNAME
  1668. SOME_IMPORTANT_CONFIG_VARIABLE
  1669. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1670. MY_FUNKY_AVATAR
  1671. MYAPPNAME_ONION_PORT
  1672. MYAPPNAME_DB_PASSWORD)
  1673. function change_password_myappname {
  1674. PASSWORD_USERNAME=&quot;$1&quot;
  1675. PASSWORD_NEW=&quot;$2&quot;
  1676. # Do something to change the password
  1677. }
  1678. function reconfigure_myappname {
  1679. echo -n ''
  1680. # Do something to delete existing keys/identity and
  1681. # generate new ones
  1682. }
  1683. function upgrade_myappname {
  1684. echo -n ''
  1685. # Do something to upgrade this app.
  1686. # If it's a debian package then it will be maintained by the
  1687. # operating system and you don't need anything here
  1688. }
  1689. function backup_local_myappname {
  1690. # If your app has a MariaDB/MySQL database
  1691. backup_database_to_usb myappname
  1692. # To backup a directory
  1693. backup_directory_to_usb ">MY_FUNKY_AVATAR</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1694. # 'full' includes your app in the full installation and you
  1695. # can also add other variants, separated by spaces. The
  1696. # available variants will be detected automatically from the
  1697. # app scripts.
  1698. VARIANTS='full'
  1699. # If you want this to appear on the control panel About screen
  1700. SHOW_ON_ABOUT=1
  1701. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1702. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1703. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1704. MYAPPNAME_ONION_PORT=[port number]
  1705. MYAPPNAME_DB_PASSWORD=
  1706. # A directory where the data for this app exists
  1707. MYAPP_DATA_DIR=/var/lib/somedirectory
  1708. # List of configuration variables used by the app
  1709. myappname_variables=(ONION_ONLY
  1710. MY_USERNAME
  1711. SOME_IMPORTANT_CONFIG_VARIABLE
  1712. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1713. MY_FUNKY_AVATAR
  1714. MYAPPNAME_ONION_PORT
  1715. MYAPPNAME_DB_PASSWORD)
  1716. function change_password_myappname {
  1717. PASSWORD_USERNAME=&quot;$1&quot;
  1718. PASSWORD_NEW=&quot;$2&quot;
  1719. # Do something to change the password
  1720. }
  1721. function reconfigure_myappname {
  1722. echo -n ''
  1723. # Do something to delete existing keys/identity and
  1724. # generate new ones
  1725. }
  1726. function upgrade_myappname {
  1727. echo -n ''
  1728. # Do something to upgrade this app.
  1729. # If it's a debian package then it will be maintained by the
  1730. # operating system and you don't need anything here
  1731. }
  1732. function backup_local_myappname {
  1733. # If your app has a MariaDB/MySQL database
  1734. backup_database_to_usb myappname
  1735. # To backup a directory
  1736. backup_directory_to_usb ">=https://some-domain-or-other/fro.png
  1737. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  1738. # 'full' includes your app in the full installation and you
  1739. # can also add other variants, separated by spaces. The
  1740. # available variants will be detected automatically from the
  1741. # app scripts.
  1742. VARIANTS='full'
  1743. # If you want this to appear on the control panel About screen
  1744. SHOW_ON_ABOUT=1
  1745. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1746. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1747. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1748. MYAPPNAME_ONION_PORT=[port number]
  1749. MYAPPNAME_DB_PASSWORD=
  1750. # A directory where the data for this app exists
  1751. MYAPP_DATA_DIR=/var/lib/somedirectory
  1752. # List of configuration variables used by the app
  1753. myappname_variables=(ONION_ONLY
  1754. MY_USERNAME
  1755. SOME_IMPORTANT_CONFIG_VARIABLE
  1756. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1757. MY_FUNKY_AVATAR
  1758. MYAPPNAME_ONION_PORT
  1759. MYAPPNAME_DB_PASSWORD)
  1760. function change_password_myappname {
  1761. PASSWORD_USERNAME=&quot;$1&quot;
  1762. PASSWORD_NEW=&quot;$2&quot;
  1763. # Do something to change the password
  1764. }
  1765. function reconfigure_myappname {
  1766. echo -n ''
  1767. # Do something to delete existing keys/identity and
  1768. # generate new ones
  1769. }
  1770. function upgrade_myappname {
  1771. echo -n ''
  1772. # Do something to upgrade this app.
  1773. # If it's a debian package then it will be maintained by the
  1774. # operating system and you don't need anything here
  1775. }
  1776. function backup_local_myappname {
  1777. # If your app has a MariaDB/MySQL database
  1778. backup_database_to_usb myappname
  1779. # To backup a directory
  1780. backup_directory_to_usb ">MYAPPNAME_ONION_PORT</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1781. # 'full' includes your app in the full installation and you
  1782. # can also add other variants, separated by spaces. The
  1783. # available variants will be detected automatically from the
  1784. # app scripts.
  1785. VARIANTS='full'
  1786. # If you want this to appear on the control panel About screen
  1787. SHOW_ON_ABOUT=1
  1788. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1789. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1790. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1791. MYAPPNAME_ONION_PORT=[port number]
  1792. MYAPPNAME_DB_PASSWORD=
  1793. # A directory where the data for this app exists
  1794. MYAPP_DATA_DIR=/var/lib/somedirectory
  1795. # List of configuration variables used by the app
  1796. myappname_variables=(ONION_ONLY
  1797. MY_USERNAME
  1798. SOME_IMPORTANT_CONFIG_VARIABLE
  1799. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1800. MY_FUNKY_AVATAR
  1801. MYAPPNAME_ONION_PORT
  1802. MYAPPNAME_DB_PASSWORD)
  1803. function change_password_myappname {
  1804. PASSWORD_USERNAME=&quot;$1&quot;
  1805. PASSWORD_NEW=&quot;$2&quot;
  1806. # Do something to change the password
  1807. }
  1808. function reconfigure_myappname {
  1809. echo -n ''
  1810. # Do something to delete existing keys/identity and
  1811. # generate new ones
  1812. }
  1813. function upgrade_myappname {
  1814. echo -n ''
  1815. # Do something to upgrade this app.
  1816. # If it's a debian package then it will be maintained by the
  1817. # operating system and you don't need anything here
  1818. }
  1819. function backup_local_myappname {
  1820. # If your app has a MariaDB/MySQL database
  1821. backup_database_to_usb myappname
  1822. # To backup a directory
  1823. backup_directory_to_usb ">=[port number]
  1824. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  1825. # 'full' includes your app in the full installation and you
  1826. # can also add other variants, separated by spaces. The
  1827. # available variants will be detected automatically from the
  1828. # app scripts.
  1829. VARIANTS='full'
  1830. # If you want this to appear on the control panel About screen
  1831. SHOW_ON_ABOUT=1
  1832. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1833. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1834. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1835. MYAPPNAME_ONION_PORT=[port number]
  1836. MYAPPNAME_DB_PASSWORD=
  1837. # A directory where the data for this app exists
  1838. MYAPP_DATA_DIR=/var/lib/somedirectory
  1839. # List of configuration variables used by the app
  1840. myappname_variables=(ONION_ONLY
  1841. MY_USERNAME
  1842. SOME_IMPORTANT_CONFIG_VARIABLE
  1843. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1844. MY_FUNKY_AVATAR
  1845. MYAPPNAME_ONION_PORT
  1846. MYAPPNAME_DB_PASSWORD)
  1847. function change_password_myappname {
  1848. PASSWORD_USERNAME=&quot;$1&quot;
  1849. PASSWORD_NEW=&quot;$2&quot;
  1850. # Do something to change the password
  1851. }
  1852. function reconfigure_myappname {
  1853. echo -n ''
  1854. # Do something to delete existing keys/identity and
  1855. # generate new ones
  1856. }
  1857. function upgrade_myappname {
  1858. echo -n ''
  1859. # Do something to upgrade this app.
  1860. # If it's a debian package then it will be maintained by the
  1861. # operating system and you don't need anything here
  1862. }
  1863. function backup_local_myappname {
  1864. # If your app has a MariaDB/MySQL database
  1865. backup_database_to_usb myappname
  1866. # To backup a directory
  1867. backup_directory_to_usb ">MYAPPNAME_DB_PASSWORD</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1868. # 'full' includes your app in the full installation and you
  1869. # can also add other variants, separated by spaces. The
  1870. # available variants will be detected automatically from the
  1871. # app scripts.
  1872. VARIANTS='full'
  1873. # If you want this to appear on the control panel About screen
  1874. SHOW_ON_ABOUT=1
  1875. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1876. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1877. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1878. MYAPPNAME_ONION_PORT=[port number]
  1879. MYAPPNAME_DB_PASSWORD=
  1880. # A directory where the data for this app exists
  1881. MYAPP_DATA_DIR=/var/lib/somedirectory
  1882. # List of configuration variables used by the app
  1883. myappname_variables=(ONION_ONLY
  1884. MY_USERNAME
  1885. SOME_IMPORTANT_CONFIG_VARIABLE
  1886. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1887. MY_FUNKY_AVATAR
  1888. MYAPPNAME_ONION_PORT
  1889. MYAPPNAME_DB_PASSWORD)
  1890. function change_password_myappname {
  1891. PASSWORD_USERNAME=&quot;$1&quot;
  1892. PASSWORD_NEW=&quot;$2&quot;
  1893. # Do something to change the password
  1894. }
  1895. function reconfigure_myappname {
  1896. echo -n ''
  1897. # Do something to delete existing keys/identity and
  1898. # generate new ones
  1899. }
  1900. function upgrade_myappname {
  1901. echo -n ''
  1902. # Do something to upgrade this app.
  1903. # If it's a debian package then it will be maintained by the
  1904. # operating system and you don't need anything here
  1905. }
  1906. function backup_local_myappname {
  1907. # If your app has a MariaDB/MySQL database
  1908. backup_database_to_usb myappname
  1909. # To backup a directory
  1910. backup_directory_to_usb ">=
  1911. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  1912. # 'full' includes your app in the full installation and you
  1913. # can also add other variants, separated by spaces. The
  1914. # available variants will be detected automatically from the
  1915. # app scripts.
  1916. VARIANTS='full'
  1917. # If you want this to appear on the control panel About screen
  1918. SHOW_ON_ABOUT=1
  1919. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1920. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1921. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1922. MYAPPNAME_ONION_PORT=[port number]
  1923. MYAPPNAME_DB_PASSWORD=
  1924. # A directory where the data for this app exists
  1925. MYAPP_DATA_DIR=/var/lib/somedirectory
  1926. # List of configuration variables used by the app
  1927. myappname_variables=(ONION_ONLY
  1928. MY_USERNAME
  1929. SOME_IMPORTANT_CONFIG_VARIABLE
  1930. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1931. MY_FUNKY_AVATAR
  1932. MYAPPNAME_ONION_PORT
  1933. MYAPPNAME_DB_PASSWORD)
  1934. function change_password_myappname {
  1935. PASSWORD_USERNAME=&quot;$1&quot;
  1936. PASSWORD_NEW=&quot;$2&quot;
  1937. # Do something to change the password
  1938. }
  1939. function reconfigure_myappname {
  1940. echo -n ''
  1941. # Do something to delete existing keys/identity and
  1942. # generate new ones
  1943. }
  1944. function upgrade_myappname {
  1945. echo -n ''
  1946. # Do something to upgrade this app.
  1947. # If it's a debian package then it will be maintained by the
  1948. # operating system and you don't need anything here
  1949. }
  1950. function backup_local_myappname {
  1951. # If your app has a MariaDB/MySQL database
  1952. backup_database_to_usb myappname
  1953. # To backup a directory
  1954. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  1955. # 'full' includes your app in the full installation and you
  1956. # can also add other variants, separated by spaces. The
  1957. # available variants will be detected automatically from the
  1958. # app scripts.
  1959. VARIANTS='full'
  1960. # If you want this to appear on the control panel About screen
  1961. SHOW_ON_ABOUT=1
  1962. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  1963. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  1964. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  1965. MYAPPNAME_ONION_PORT=[port number]
  1966. MYAPPNAME_DB_PASSWORD=
  1967. # A directory where the data for this app exists
  1968. MYAPP_DATA_DIR=/var/lib/somedirectory
  1969. # List of configuration variables used by the app
  1970. myappname_variables=(ONION_ONLY
  1971. MY_USERNAME
  1972. SOME_IMPORTANT_CONFIG_VARIABLE
  1973. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  1974. MY_FUNKY_AVATAR
  1975. MYAPPNAME_ONION_PORT
  1976. MYAPPNAME_DB_PASSWORD)
  1977. function change_password_myappname {
  1978. PASSWORD_USERNAME=&quot;$1&quot;
  1979. PASSWORD_NEW=&quot;$2&quot;
  1980. # Do something to change the password
  1981. }
  1982. function reconfigure_myappname {
  1983. echo -n ''
  1984. # Do something to delete existing keys/identity and
  1985. # generate new ones
  1986. }
  1987. function upgrade_myappname {
  1988. echo -n ''
  1989. # Do something to upgrade this app.
  1990. # If it's a debian package then it will be maintained by the
  1991. # operating system and you don't need anything here
  1992. }
  1993. function backup_local_myappname {
  1994. # If your app has a MariaDB/MySQL database
  1995. backup_database_to_usb myappname
  1996. # To backup a directory
  1997. backup_directory_to_usb ">A directory where the data for this app exists</a></span><a href="http://www.gnu.org/licenses/&gt;.
  1998. # 'full' includes your app in the full installation and you
  1999. # can also add other variants, separated by spaces. The
  2000. # available variants will be detected automatically from the
  2001. # app scripts.
  2002. VARIANTS='full'
  2003. # If you want this to appear on the control panel About screen
  2004. SHOW_ON_ABOUT=1
  2005. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2006. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2007. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2008. MYAPPNAME_ONION_PORT=[port number]
  2009. MYAPPNAME_DB_PASSWORD=
  2010. # A directory where the data for this app exists
  2011. MYAPP_DATA_DIR=/var/lib/somedirectory
  2012. # List of configuration variables used by the app
  2013. myappname_variables=(ONION_ONLY
  2014. MY_USERNAME
  2015. SOME_IMPORTANT_CONFIG_VARIABLE
  2016. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2017. MY_FUNKY_AVATAR
  2018. MYAPPNAME_ONION_PORT
  2019. MYAPPNAME_DB_PASSWORD)
  2020. function change_password_myappname {
  2021. PASSWORD_USERNAME=&quot;$1&quot;
  2022. PASSWORD_NEW=&quot;$2&quot;
  2023. # Do something to change the password
  2024. }
  2025. function reconfigure_myappname {
  2026. echo -n ''
  2027. # Do something to delete existing keys/identity and
  2028. # generate new ones
  2029. }
  2030. function upgrade_myappname {
  2031. echo -n ''
  2032. # Do something to upgrade this app.
  2033. # If it's a debian package then it will be maintained by the
  2034. # operating system and you don't need anything here
  2035. }
  2036. function backup_local_myappname {
  2037. # If your app has a MariaDB/MySQL database
  2038. backup_database_to_usb myappname
  2039. # To backup a directory
  2040. backup_directory_to_usb ">
  2041. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  2042. # 'full' includes your app in the full installation and you
  2043. # can also add other variants, separated by spaces. The
  2044. # available variants will be detected automatically from the
  2045. # app scripts.
  2046. VARIANTS='full'
  2047. # If you want this to appear on the control panel About screen
  2048. SHOW_ON_ABOUT=1
  2049. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2050. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2051. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2052. MYAPPNAME_ONION_PORT=[port number]
  2053. MYAPPNAME_DB_PASSWORD=
  2054. # A directory where the data for this app exists
  2055. MYAPP_DATA_DIR=/var/lib/somedirectory
  2056. # List of configuration variables used by the app
  2057. myappname_variables=(ONION_ONLY
  2058. MY_USERNAME
  2059. SOME_IMPORTANT_CONFIG_VARIABLE
  2060. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2061. MY_FUNKY_AVATAR
  2062. MYAPPNAME_ONION_PORT
  2063. MYAPPNAME_DB_PASSWORD)
  2064. function change_password_myappname {
  2065. PASSWORD_USERNAME=&quot;$1&quot;
  2066. PASSWORD_NEW=&quot;$2&quot;
  2067. # Do something to change the password
  2068. }
  2069. function reconfigure_myappname {
  2070. echo -n ''
  2071. # Do something to delete existing keys/identity and
  2072. # generate new ones
  2073. }
  2074. function upgrade_myappname {
  2075. echo -n ''
  2076. # Do something to upgrade this app.
  2077. # If it's a debian package then it will be maintained by the
  2078. # operating system and you don't need anything here
  2079. }
  2080. function backup_local_myappname {
  2081. # If your app has a MariaDB/MySQL database
  2082. backup_database_to_usb myappname
  2083. # To backup a directory
  2084. backup_directory_to_usb ">MYAPP_DATA_DIR</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2085. # 'full' includes your app in the full installation and you
  2086. # can also add other variants, separated by spaces. The
  2087. # available variants will be detected automatically from the
  2088. # app scripts.
  2089. VARIANTS='full'
  2090. # If you want this to appear on the control panel About screen
  2091. SHOW_ON_ABOUT=1
  2092. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2093. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2094. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2095. MYAPPNAME_ONION_PORT=[port number]
  2096. MYAPPNAME_DB_PASSWORD=
  2097. # A directory where the data for this app exists
  2098. MYAPP_DATA_DIR=/var/lib/somedirectory
  2099. # List of configuration variables used by the app
  2100. myappname_variables=(ONION_ONLY
  2101. MY_USERNAME
  2102. SOME_IMPORTANT_CONFIG_VARIABLE
  2103. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2104. MY_FUNKY_AVATAR
  2105. MYAPPNAME_ONION_PORT
  2106. MYAPPNAME_DB_PASSWORD)
  2107. function change_password_myappname {
  2108. PASSWORD_USERNAME=&quot;$1&quot;
  2109. PASSWORD_NEW=&quot;$2&quot;
  2110. # Do something to change the password
  2111. }
  2112. function reconfigure_myappname {
  2113. echo -n ''
  2114. # Do something to delete existing keys/identity and
  2115. # generate new ones
  2116. }
  2117. function upgrade_myappname {
  2118. echo -n ''
  2119. # Do something to upgrade this app.
  2120. # If it's a debian package then it will be maintained by the
  2121. # operating system and you don't need anything here
  2122. }
  2123. function backup_local_myappname {
  2124. # If your app has a MariaDB/MySQL database
  2125. backup_database_to_usb myappname
  2126. # To backup a directory
  2127. backup_directory_to_usb ">=/var/lib/somedirectory
  2128. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  2129. # 'full' includes your app in the full installation and you
  2130. # can also add other variants, separated by spaces. The
  2131. # available variants will be detected automatically from the
  2132. # app scripts.
  2133. VARIANTS='full'
  2134. # If you want this to appear on the control panel About screen
  2135. SHOW_ON_ABOUT=1
  2136. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2137. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2138. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2139. MYAPPNAME_ONION_PORT=[port number]
  2140. MYAPPNAME_DB_PASSWORD=
  2141. # A directory where the data for this app exists
  2142. MYAPP_DATA_DIR=/var/lib/somedirectory
  2143. # List of configuration variables used by the app
  2144. myappname_variables=(ONION_ONLY
  2145. MY_USERNAME
  2146. SOME_IMPORTANT_CONFIG_VARIABLE
  2147. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2148. MY_FUNKY_AVATAR
  2149. MYAPPNAME_ONION_PORT
  2150. MYAPPNAME_DB_PASSWORD)
  2151. function change_password_myappname {
  2152. PASSWORD_USERNAME=&quot;$1&quot;
  2153. PASSWORD_NEW=&quot;$2&quot;
  2154. # Do something to change the password
  2155. }
  2156. function reconfigure_myappname {
  2157. echo -n ''
  2158. # Do something to delete existing keys/identity and
  2159. # generate new ones
  2160. }
  2161. function upgrade_myappname {
  2162. echo -n ''
  2163. # Do something to upgrade this app.
  2164. # If it's a debian package then it will be maintained by the
  2165. # operating system and you don't need anything here
  2166. }
  2167. function backup_local_myappname {
  2168. # If your app has a MariaDB/MySQL database
  2169. backup_database_to_usb myappname
  2170. # To backup a directory
  2171. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  2172. # 'full' includes your app in the full installation and you
  2173. # can also add other variants, separated by spaces. The
  2174. # available variants will be detected automatically from the
  2175. # app scripts.
  2176. VARIANTS='full'
  2177. # If you want this to appear on the control panel About screen
  2178. SHOW_ON_ABOUT=1
  2179. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2180. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2181. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2182. MYAPPNAME_ONION_PORT=[port number]
  2183. MYAPPNAME_DB_PASSWORD=
  2184. # A directory where the data for this app exists
  2185. MYAPP_DATA_DIR=/var/lib/somedirectory
  2186. # List of configuration variables used by the app
  2187. myappname_variables=(ONION_ONLY
  2188. MY_USERNAME
  2189. SOME_IMPORTANT_CONFIG_VARIABLE
  2190. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2191. MY_FUNKY_AVATAR
  2192. MYAPPNAME_ONION_PORT
  2193. MYAPPNAME_DB_PASSWORD)
  2194. function change_password_myappname {
  2195. PASSWORD_USERNAME=&quot;$1&quot;
  2196. PASSWORD_NEW=&quot;$2&quot;
  2197. # Do something to change the password
  2198. }
  2199. function reconfigure_myappname {
  2200. echo -n ''
  2201. # Do something to delete existing keys/identity and
  2202. # generate new ones
  2203. }
  2204. function upgrade_myappname {
  2205. echo -n ''
  2206. # Do something to upgrade this app.
  2207. # If it's a debian package then it will be maintained by the
  2208. # operating system and you don't need anything here
  2209. }
  2210. function backup_local_myappname {
  2211. # If your app has a MariaDB/MySQL database
  2212. backup_database_to_usb myappname
  2213. # To backup a directory
  2214. backup_directory_to_usb ">List of configuration variables used by the app</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2215. # 'full' includes your app in the full installation and you
  2216. # can also add other variants, separated by spaces. The
  2217. # available variants will be detected automatically from the
  2218. # app scripts.
  2219. VARIANTS='full'
  2220. # If you want this to appear on the control panel About screen
  2221. SHOW_ON_ABOUT=1
  2222. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2223. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2224. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2225. MYAPPNAME_ONION_PORT=[port number]
  2226. MYAPPNAME_DB_PASSWORD=
  2227. # A directory where the data for this app exists
  2228. MYAPP_DATA_DIR=/var/lib/somedirectory
  2229. # List of configuration variables used by the app
  2230. myappname_variables=(ONION_ONLY
  2231. MY_USERNAME
  2232. SOME_IMPORTANT_CONFIG_VARIABLE
  2233. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2234. MY_FUNKY_AVATAR
  2235. MYAPPNAME_ONION_PORT
  2236. MYAPPNAME_DB_PASSWORD)
  2237. function change_password_myappname {
  2238. PASSWORD_USERNAME=&quot;$1&quot;
  2239. PASSWORD_NEW=&quot;$2&quot;
  2240. # Do something to change the password
  2241. }
  2242. function reconfigure_myappname {
  2243. echo -n ''
  2244. # Do something to delete existing keys/identity and
  2245. # generate new ones
  2246. }
  2247. function upgrade_myappname {
  2248. echo -n ''
  2249. # Do something to upgrade this app.
  2250. # If it's a debian package then it will be maintained by the
  2251. # operating system and you don't need anything here
  2252. }
  2253. function backup_local_myappname {
  2254. # If your app has a MariaDB/MySQL database
  2255. backup_database_to_usb myappname
  2256. # To backup a directory
  2257. backup_directory_to_usb ">
  2258. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  2259. # 'full' includes your app in the full installation and you
  2260. # can also add other variants, separated by spaces. The
  2261. # available variants will be detected automatically from the
  2262. # app scripts.
  2263. VARIANTS='full'
  2264. # If you want this to appear on the control panel About screen
  2265. SHOW_ON_ABOUT=1
  2266. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2267. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2268. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2269. MYAPPNAME_ONION_PORT=[port number]
  2270. MYAPPNAME_DB_PASSWORD=
  2271. # A directory where the data for this app exists
  2272. MYAPP_DATA_DIR=/var/lib/somedirectory
  2273. # List of configuration variables used by the app
  2274. myappname_variables=(ONION_ONLY
  2275. MY_USERNAME
  2276. SOME_IMPORTANT_CONFIG_VARIABLE
  2277. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2278. MY_FUNKY_AVATAR
  2279. MYAPPNAME_ONION_PORT
  2280. MYAPPNAME_DB_PASSWORD)
  2281. function change_password_myappname {
  2282. PASSWORD_USERNAME=&quot;$1&quot;
  2283. PASSWORD_NEW=&quot;$2&quot;
  2284. # Do something to change the password
  2285. }
  2286. function reconfigure_myappname {
  2287. echo -n ''
  2288. # Do something to delete existing keys/identity and
  2289. # generate new ones
  2290. }
  2291. function upgrade_myappname {
  2292. echo -n ''
  2293. # Do something to upgrade this app.
  2294. # If it's a debian package then it will be maintained by the
  2295. # operating system and you don't need anything here
  2296. }
  2297. function backup_local_myappname {
  2298. # If your app has a MariaDB/MySQL database
  2299. backup_database_to_usb myappname
  2300. # To backup a directory
  2301. backup_directory_to_usb ">myappname_variables</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2302. # 'full' includes your app in the full installation and you
  2303. # can also add other variants, separated by spaces. The
  2304. # available variants will be detected automatically from the
  2305. # app scripts.
  2306. VARIANTS='full'
  2307. # If you want this to appear on the control panel About screen
  2308. SHOW_ON_ABOUT=1
  2309. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2310. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2311. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2312. MYAPPNAME_ONION_PORT=[port number]
  2313. MYAPPNAME_DB_PASSWORD=
  2314. # A directory where the data for this app exists
  2315. MYAPP_DATA_DIR=/var/lib/somedirectory
  2316. # List of configuration variables used by the app
  2317. myappname_variables=(ONION_ONLY
  2318. MY_USERNAME
  2319. SOME_IMPORTANT_CONFIG_VARIABLE
  2320. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2321. MY_FUNKY_AVATAR
  2322. MYAPPNAME_ONION_PORT
  2323. MYAPPNAME_DB_PASSWORD)
  2324. function change_password_myappname {
  2325. PASSWORD_USERNAME=&quot;$1&quot;
  2326. PASSWORD_NEW=&quot;$2&quot;
  2327. # Do something to change the password
  2328. }
  2329. function reconfigure_myappname {
  2330. echo -n ''
  2331. # Do something to delete existing keys/identity and
  2332. # generate new ones
  2333. }
  2334. function upgrade_myappname {
  2335. echo -n ''
  2336. # Do something to upgrade this app.
  2337. # If it's a debian package then it will be maintained by the
  2338. # operating system and you don't need anything here
  2339. }
  2340. function backup_local_myappname {
  2341. # If your app has a MariaDB/MySQL database
  2342. backup_database_to_usb myappname
  2343. # To backup a directory
  2344. backup_directory_to_usb ">=(ONION_ONLY
  2345. MY_USERNAME
  2346. SOME_IMPORTANT_CONFIG_VARIABLE
  2347. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2348. MY_FUNKY_AVATAR
  2349. MYAPPNAME_ONION_PORT
  2350. MYAPPNAME_DB_PASSWORD)
  2351. </a><span class="org-keyword"><a href="http://www.gnu.org/licenses/&gt;.
  2352. # 'full' includes your app in the full installation and you
  2353. # can also add other variants, separated by spaces. The
  2354. # available variants will be detected automatically from the
  2355. # app scripts.
  2356. VARIANTS='full'
  2357. # If you want this to appear on the control panel About screen
  2358. SHOW_ON_ABOUT=1
  2359. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2360. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2361. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2362. MYAPPNAME_ONION_PORT=[port number]
  2363. MYAPPNAME_DB_PASSWORD=
  2364. # A directory where the data for this app exists
  2365. MYAPP_DATA_DIR=/var/lib/somedirectory
  2366. # List of configuration variables used by the app
  2367. myappname_variables=(ONION_ONLY
  2368. MY_USERNAME
  2369. SOME_IMPORTANT_CONFIG_VARIABLE
  2370. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2371. MY_FUNKY_AVATAR
  2372. MYAPPNAME_ONION_PORT
  2373. MYAPPNAME_DB_PASSWORD)
  2374. function change_password_myappname {
  2375. PASSWORD_USERNAME=&quot;$1&quot;
  2376. PASSWORD_NEW=&quot;$2&quot;
  2377. # Do something to change the password
  2378. }
  2379. function reconfigure_myappname {
  2380. echo -n ''
  2381. # Do something to delete existing keys/identity and
  2382. # generate new ones
  2383. }
  2384. function upgrade_myappname {
  2385. echo -n ''
  2386. # Do something to upgrade this app.
  2387. # If it's a debian package then it will be maintained by the
  2388. # operating system and you don't need anything here
  2389. }
  2390. function backup_local_myappname {
  2391. # If your app has a MariaDB/MySQL database
  2392. backup_database_to_usb myappname
  2393. # To backup a directory
  2394. backup_directory_to_usb ">function</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2395. # 'full' includes your app in the full installation and you
  2396. # can also add other variants, separated by spaces. The
  2397. # available variants will be detected automatically from the
  2398. # app scripts.
  2399. VARIANTS='full'
  2400. # If you want this to appear on the control panel About screen
  2401. SHOW_ON_ABOUT=1
  2402. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2403. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2404. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2405. MYAPPNAME_ONION_PORT=[port number]
  2406. MYAPPNAME_DB_PASSWORD=
  2407. # A directory where the data for this app exists
  2408. MYAPP_DATA_DIR=/var/lib/somedirectory
  2409. # List of configuration variables used by the app
  2410. myappname_variables=(ONION_ONLY
  2411. MY_USERNAME
  2412. SOME_IMPORTANT_CONFIG_VARIABLE
  2413. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2414. MY_FUNKY_AVATAR
  2415. MYAPPNAME_ONION_PORT
  2416. MYAPPNAME_DB_PASSWORD)
  2417. function change_password_myappname {
  2418. PASSWORD_USERNAME=&quot;$1&quot;
  2419. PASSWORD_NEW=&quot;$2&quot;
  2420. # Do something to change the password
  2421. }
  2422. function reconfigure_myappname {
  2423. echo -n ''
  2424. # Do something to delete existing keys/identity and
  2425. # generate new ones
  2426. }
  2427. function upgrade_myappname {
  2428. echo -n ''
  2429. # Do something to upgrade this app.
  2430. # If it's a debian package then it will be maintained by the
  2431. # operating system and you don't need anything here
  2432. }
  2433. function backup_local_myappname {
  2434. # If your app has a MariaDB/MySQL database
  2435. backup_database_to_usb myappname
  2436. # To backup a directory
  2437. backup_directory_to_usb "> </a><span class="org-function-name"><a href="http://www.gnu.org/licenses/&gt;.
  2438. # 'full' includes your app in the full installation and you
  2439. # can also add other variants, separated by spaces. The
  2440. # available variants will be detected automatically from the
  2441. # app scripts.
  2442. VARIANTS='full'
  2443. # If you want this to appear on the control panel About screen
  2444. SHOW_ON_ABOUT=1
  2445. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2446. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2447. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2448. MYAPPNAME_ONION_PORT=[port number]
  2449. MYAPPNAME_DB_PASSWORD=
  2450. # A directory where the data for this app exists
  2451. MYAPP_DATA_DIR=/var/lib/somedirectory
  2452. # List of configuration variables used by the app
  2453. myappname_variables=(ONION_ONLY
  2454. MY_USERNAME
  2455. SOME_IMPORTANT_CONFIG_VARIABLE
  2456. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2457. MY_FUNKY_AVATAR
  2458. MYAPPNAME_ONION_PORT
  2459. MYAPPNAME_DB_PASSWORD)
  2460. function change_password_myappname {
  2461. PASSWORD_USERNAME=&quot;$1&quot;
  2462. PASSWORD_NEW=&quot;$2&quot;
  2463. # Do something to change the password
  2464. }
  2465. function reconfigure_myappname {
  2466. echo -n ''
  2467. # Do something to delete existing keys/identity and
  2468. # generate new ones
  2469. }
  2470. function upgrade_myappname {
  2471. echo -n ''
  2472. # Do something to upgrade this app.
  2473. # If it's a debian package then it will be maintained by the
  2474. # operating system and you don't need anything here
  2475. }
  2476. function backup_local_myappname {
  2477. # If your app has a MariaDB/MySQL database
  2478. backup_database_to_usb myappname
  2479. # To backup a directory
  2480. backup_directory_to_usb ">change_password_myappname</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2481. # 'full' includes your app in the full installation and you
  2482. # can also add other variants, separated by spaces. The
  2483. # available variants will be detected automatically from the
  2484. # app scripts.
  2485. VARIANTS='full'
  2486. # If you want this to appear on the control panel About screen
  2487. SHOW_ON_ABOUT=1
  2488. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2489. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2490. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2491. MYAPPNAME_ONION_PORT=[port number]
  2492. MYAPPNAME_DB_PASSWORD=
  2493. # A directory where the data for this app exists
  2494. MYAPP_DATA_DIR=/var/lib/somedirectory
  2495. # List of configuration variables used by the app
  2496. myappname_variables=(ONION_ONLY
  2497. MY_USERNAME
  2498. SOME_IMPORTANT_CONFIG_VARIABLE
  2499. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2500. MY_FUNKY_AVATAR
  2501. MYAPPNAME_ONION_PORT
  2502. MYAPPNAME_DB_PASSWORD)
  2503. function change_password_myappname {
  2504. PASSWORD_USERNAME=&quot;$1&quot;
  2505. PASSWORD_NEW=&quot;$2&quot;
  2506. # Do something to change the password
  2507. }
  2508. function reconfigure_myappname {
  2509. echo -n ''
  2510. # Do something to delete existing keys/identity and
  2511. # generate new ones
  2512. }
  2513. function upgrade_myappname {
  2514. echo -n ''
  2515. # Do something to upgrade this app.
  2516. # If it's a debian package then it will be maintained by the
  2517. # operating system and you don't need anything here
  2518. }
  2519. function backup_local_myappname {
  2520. # If your app has a MariaDB/MySQL database
  2521. backup_database_to_usb myappname
  2522. # To backup a directory
  2523. backup_directory_to_usb "> {
  2524. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  2525. # 'full' includes your app in the full installation and you
  2526. # can also add other variants, separated by spaces. The
  2527. # available variants will be detected automatically from the
  2528. # app scripts.
  2529. VARIANTS='full'
  2530. # If you want this to appear on the control panel About screen
  2531. SHOW_ON_ABOUT=1
  2532. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2533. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2534. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2535. MYAPPNAME_ONION_PORT=[port number]
  2536. MYAPPNAME_DB_PASSWORD=
  2537. # A directory where the data for this app exists
  2538. MYAPP_DATA_DIR=/var/lib/somedirectory
  2539. # List of configuration variables used by the app
  2540. myappname_variables=(ONION_ONLY
  2541. MY_USERNAME
  2542. SOME_IMPORTANT_CONFIG_VARIABLE
  2543. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2544. MY_FUNKY_AVATAR
  2545. MYAPPNAME_ONION_PORT
  2546. MYAPPNAME_DB_PASSWORD)
  2547. function change_password_myappname {
  2548. PASSWORD_USERNAME=&quot;$1&quot;
  2549. PASSWORD_NEW=&quot;$2&quot;
  2550. # Do something to change the password
  2551. }
  2552. function reconfigure_myappname {
  2553. echo -n ''
  2554. # Do something to delete existing keys/identity and
  2555. # generate new ones
  2556. }
  2557. function upgrade_myappname {
  2558. echo -n ''
  2559. # Do something to upgrade this app.
  2560. # If it's a debian package then it will be maintained by the
  2561. # operating system and you don't need anything here
  2562. }
  2563. function backup_local_myappname {
  2564. # If your app has a MariaDB/MySQL database
  2565. backup_database_to_usb myappname
  2566. # To backup a directory
  2567. backup_directory_to_usb ">PASSWORD_USERNAME</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2568. # 'full' includes your app in the full installation and you
  2569. # can also add other variants, separated by spaces. The
  2570. # available variants will be detected automatically from the
  2571. # app scripts.
  2572. VARIANTS='full'
  2573. # If you want this to appear on the control panel About screen
  2574. SHOW_ON_ABOUT=1
  2575. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2576. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2577. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2578. MYAPPNAME_ONION_PORT=[port number]
  2579. MYAPPNAME_DB_PASSWORD=
  2580. # A directory where the data for this app exists
  2581. MYAPP_DATA_DIR=/var/lib/somedirectory
  2582. # List of configuration variables used by the app
  2583. myappname_variables=(ONION_ONLY
  2584. MY_USERNAME
  2585. SOME_IMPORTANT_CONFIG_VARIABLE
  2586. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2587. MY_FUNKY_AVATAR
  2588. MYAPPNAME_ONION_PORT
  2589. MYAPPNAME_DB_PASSWORD)
  2590. function change_password_myappname {
  2591. PASSWORD_USERNAME=&quot;$1&quot;
  2592. PASSWORD_NEW=&quot;$2&quot;
  2593. # Do something to change the password
  2594. }
  2595. function reconfigure_myappname {
  2596. echo -n ''
  2597. # Do something to delete existing keys/identity and
  2598. # generate new ones
  2599. }
  2600. function upgrade_myappname {
  2601. echo -n ''
  2602. # Do something to upgrade this app.
  2603. # If it's a debian package then it will be maintained by the
  2604. # operating system and you don't need anything here
  2605. }
  2606. function backup_local_myappname {
  2607. # If your app has a MariaDB/MySQL database
  2608. backup_database_to_usb myappname
  2609. # To backup a directory
  2610. backup_directory_to_usb ">=</a><span class="org-string"><a href="http://www.gnu.org/licenses/&gt;.
  2611. # 'full' includes your app in the full installation and you
  2612. # can also add other variants, separated by spaces. The
  2613. # available variants will be detected automatically from the
  2614. # app scripts.
  2615. VARIANTS='full'
  2616. # If you want this to appear on the control panel About screen
  2617. SHOW_ON_ABOUT=1
  2618. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2619. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2620. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2621. MYAPPNAME_ONION_PORT=[port number]
  2622. MYAPPNAME_DB_PASSWORD=
  2623. # A directory where the data for this app exists
  2624. MYAPP_DATA_DIR=/var/lib/somedirectory
  2625. # List of configuration variables used by the app
  2626. myappname_variables=(ONION_ONLY
  2627. MY_USERNAME
  2628. SOME_IMPORTANT_CONFIG_VARIABLE
  2629. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2630. MY_FUNKY_AVATAR
  2631. MYAPPNAME_ONION_PORT
  2632. MYAPPNAME_DB_PASSWORD)
  2633. function change_password_myappname {
  2634. PASSWORD_USERNAME=&quot;$1&quot;
  2635. PASSWORD_NEW=&quot;$2&quot;
  2636. # Do something to change the password
  2637. }
  2638. function reconfigure_myappname {
  2639. echo -n ''
  2640. # Do something to delete existing keys/identity and
  2641. # generate new ones
  2642. }
  2643. function upgrade_myappname {
  2644. echo -n ''
  2645. # Do something to upgrade this app.
  2646. # If it's a debian package then it will be maintained by the
  2647. # operating system and you don't need anything here
  2648. }
  2649. function backup_local_myappname {
  2650. # If your app has a MariaDB/MySQL database
  2651. backup_database_to_usb myappname
  2652. # To backup a directory
  2653. backup_directory_to_usb ">"$1"</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2654. # 'full' includes your app in the full installation and you
  2655. # can also add other variants, separated by spaces. The
  2656. # available variants will be detected automatically from the
  2657. # app scripts.
  2658. VARIANTS='full'
  2659. # If you want this to appear on the control panel About screen
  2660. SHOW_ON_ABOUT=1
  2661. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2662. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2663. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2664. MYAPPNAME_ONION_PORT=[port number]
  2665. MYAPPNAME_DB_PASSWORD=
  2666. # A directory where the data for this app exists
  2667. MYAPP_DATA_DIR=/var/lib/somedirectory
  2668. # List of configuration variables used by the app
  2669. myappname_variables=(ONION_ONLY
  2670. MY_USERNAME
  2671. SOME_IMPORTANT_CONFIG_VARIABLE
  2672. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2673. MY_FUNKY_AVATAR
  2674. MYAPPNAME_ONION_PORT
  2675. MYAPPNAME_DB_PASSWORD)
  2676. function change_password_myappname {
  2677. PASSWORD_USERNAME=&quot;$1&quot;
  2678. PASSWORD_NEW=&quot;$2&quot;
  2679. # Do something to change the password
  2680. }
  2681. function reconfigure_myappname {
  2682. echo -n ''
  2683. # Do something to delete existing keys/identity and
  2684. # generate new ones
  2685. }
  2686. function upgrade_myappname {
  2687. echo -n ''
  2688. # Do something to upgrade this app.
  2689. # If it's a debian package then it will be maintained by the
  2690. # operating system and you don't need anything here
  2691. }
  2692. function backup_local_myappname {
  2693. # If your app has a MariaDB/MySQL database
  2694. backup_database_to_usb myappname
  2695. # To backup a directory
  2696. backup_directory_to_usb ">
  2697. </a><span class="org-variable-name"><a href="http://www.gnu.org/licenses/&gt;.
  2698. # 'full' includes your app in the full installation and you
  2699. # can also add other variants, separated by spaces. The
  2700. # available variants will be detected automatically from the
  2701. # app scripts.
  2702. VARIANTS='full'
  2703. # If you want this to appear on the control panel About screen
  2704. SHOW_ON_ABOUT=1
  2705. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2706. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2707. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2708. MYAPPNAME_ONION_PORT=[port number]
  2709. MYAPPNAME_DB_PASSWORD=
  2710. # A directory where the data for this app exists
  2711. MYAPP_DATA_DIR=/var/lib/somedirectory
  2712. # List of configuration variables used by the app
  2713. myappname_variables=(ONION_ONLY
  2714. MY_USERNAME
  2715. SOME_IMPORTANT_CONFIG_VARIABLE
  2716. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2717. MY_FUNKY_AVATAR
  2718. MYAPPNAME_ONION_PORT
  2719. MYAPPNAME_DB_PASSWORD)
  2720. function change_password_myappname {
  2721. PASSWORD_USERNAME=&quot;$1&quot;
  2722. PASSWORD_NEW=&quot;$2&quot;
  2723. # Do something to change the password
  2724. }
  2725. function reconfigure_myappname {
  2726. echo -n ''
  2727. # Do something to delete existing keys/identity and
  2728. # generate new ones
  2729. }
  2730. function upgrade_myappname {
  2731. echo -n ''
  2732. # Do something to upgrade this app.
  2733. # If it's a debian package then it will be maintained by the
  2734. # operating system and you don't need anything here
  2735. }
  2736. function backup_local_myappname {
  2737. # If your app has a MariaDB/MySQL database
  2738. backup_database_to_usb myappname
  2739. # To backup a directory
  2740. backup_directory_to_usb ">PASSWORD_NEW</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2741. # 'full' includes your app in the full installation and you
  2742. # can also add other variants, separated by spaces. The
  2743. # available variants will be detected automatically from the
  2744. # app scripts.
  2745. VARIANTS='full'
  2746. # If you want this to appear on the control panel About screen
  2747. SHOW_ON_ABOUT=1
  2748. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2749. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2750. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2751. MYAPPNAME_ONION_PORT=[port number]
  2752. MYAPPNAME_DB_PASSWORD=
  2753. # A directory where the data for this app exists
  2754. MYAPP_DATA_DIR=/var/lib/somedirectory
  2755. # List of configuration variables used by the app
  2756. myappname_variables=(ONION_ONLY
  2757. MY_USERNAME
  2758. SOME_IMPORTANT_CONFIG_VARIABLE
  2759. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2760. MY_FUNKY_AVATAR
  2761. MYAPPNAME_ONION_PORT
  2762. MYAPPNAME_DB_PASSWORD)
  2763. function change_password_myappname {
  2764. PASSWORD_USERNAME=&quot;$1&quot;
  2765. PASSWORD_NEW=&quot;$2&quot;
  2766. # Do something to change the password
  2767. }
  2768. function reconfigure_myappname {
  2769. echo -n ''
  2770. # Do something to delete existing keys/identity and
  2771. # generate new ones
  2772. }
  2773. function upgrade_myappname {
  2774. echo -n ''
  2775. # Do something to upgrade this app.
  2776. # If it's a debian package then it will be maintained by the
  2777. # operating system and you don't need anything here
  2778. }
  2779. function backup_local_myappname {
  2780. # If your app has a MariaDB/MySQL database
  2781. backup_database_to_usb myappname
  2782. # To backup a directory
  2783. backup_directory_to_usb ">=</a><span class="org-string"><a href="http://www.gnu.org/licenses/&gt;.
  2784. # 'full' includes your app in the full installation and you
  2785. # can also add other variants, separated by spaces. The
  2786. # available variants will be detected automatically from the
  2787. # app scripts.
  2788. VARIANTS='full'
  2789. # If you want this to appear on the control panel About screen
  2790. SHOW_ON_ABOUT=1
  2791. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2792. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2793. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2794. MYAPPNAME_ONION_PORT=[port number]
  2795. MYAPPNAME_DB_PASSWORD=
  2796. # A directory where the data for this app exists
  2797. MYAPP_DATA_DIR=/var/lib/somedirectory
  2798. # List of configuration variables used by the app
  2799. myappname_variables=(ONION_ONLY
  2800. MY_USERNAME
  2801. SOME_IMPORTANT_CONFIG_VARIABLE
  2802. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2803. MY_FUNKY_AVATAR
  2804. MYAPPNAME_ONION_PORT
  2805. MYAPPNAME_DB_PASSWORD)
  2806. function change_password_myappname {
  2807. PASSWORD_USERNAME=&quot;$1&quot;
  2808. PASSWORD_NEW=&quot;$2&quot;
  2809. # Do something to change the password
  2810. }
  2811. function reconfigure_myappname {
  2812. echo -n ''
  2813. # Do something to delete existing keys/identity and
  2814. # generate new ones
  2815. }
  2816. function upgrade_myappname {
  2817. echo -n ''
  2818. # Do something to upgrade this app.
  2819. # If it's a debian package then it will be maintained by the
  2820. # operating system and you don't need anything here
  2821. }
  2822. function backup_local_myappname {
  2823. # If your app has a MariaDB/MySQL database
  2824. backup_database_to_usb myappname
  2825. # To backup a directory
  2826. backup_directory_to_usb ">"$2"</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2827. # 'full' includes your app in the full installation and you
  2828. # can also add other variants, separated by spaces. The
  2829. # available variants will be detected automatically from the
  2830. # app scripts.
  2831. VARIANTS='full'
  2832. # If you want this to appear on the control panel About screen
  2833. SHOW_ON_ABOUT=1
  2834. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2835. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2836. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2837. MYAPPNAME_ONION_PORT=[port number]
  2838. MYAPPNAME_DB_PASSWORD=
  2839. # A directory where the data for this app exists
  2840. MYAPP_DATA_DIR=/var/lib/somedirectory
  2841. # List of configuration variables used by the app
  2842. myappname_variables=(ONION_ONLY
  2843. MY_USERNAME
  2844. SOME_IMPORTANT_CONFIG_VARIABLE
  2845. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2846. MY_FUNKY_AVATAR
  2847. MYAPPNAME_ONION_PORT
  2848. MYAPPNAME_DB_PASSWORD)
  2849. function change_password_myappname {
  2850. PASSWORD_USERNAME=&quot;$1&quot;
  2851. PASSWORD_NEW=&quot;$2&quot;
  2852. # Do something to change the password
  2853. }
  2854. function reconfigure_myappname {
  2855. echo -n ''
  2856. # Do something to delete existing keys/identity and
  2857. # generate new ones
  2858. }
  2859. function upgrade_myappname {
  2860. echo -n ''
  2861. # Do something to upgrade this app.
  2862. # If it's a debian package then it will be maintained by the
  2863. # operating system and you don't need anything here
  2864. }
  2865. function backup_local_myappname {
  2866. # If your app has a MariaDB/MySQL database
  2867. backup_database_to_usb myappname
  2868. # To backup a directory
  2869. backup_directory_to_usb ">
  2870. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  2871. # 'full' includes your app in the full installation and you
  2872. # can also add other variants, separated by spaces. The
  2873. # available variants will be detected automatically from the
  2874. # app scripts.
  2875. VARIANTS='full'
  2876. # If you want this to appear on the control panel About screen
  2877. SHOW_ON_ABOUT=1
  2878. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2879. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2880. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2881. MYAPPNAME_ONION_PORT=[port number]
  2882. MYAPPNAME_DB_PASSWORD=
  2883. # A directory where the data for this app exists
  2884. MYAPP_DATA_DIR=/var/lib/somedirectory
  2885. # List of configuration variables used by the app
  2886. myappname_variables=(ONION_ONLY
  2887. MY_USERNAME
  2888. SOME_IMPORTANT_CONFIG_VARIABLE
  2889. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2890. MY_FUNKY_AVATAR
  2891. MYAPPNAME_ONION_PORT
  2892. MYAPPNAME_DB_PASSWORD)
  2893. function change_password_myappname {
  2894. PASSWORD_USERNAME=&quot;$1&quot;
  2895. PASSWORD_NEW=&quot;$2&quot;
  2896. # Do something to change the password
  2897. }
  2898. function reconfigure_myappname {
  2899. echo -n ''
  2900. # Do something to delete existing keys/identity and
  2901. # generate new ones
  2902. }
  2903. function upgrade_myappname {
  2904. echo -n ''
  2905. # Do something to upgrade this app.
  2906. # If it's a debian package then it will be maintained by the
  2907. # operating system and you don't need anything here
  2908. }
  2909. function backup_local_myappname {
  2910. # If your app has a MariaDB/MySQL database
  2911. backup_database_to_usb myappname
  2912. # To backup a directory
  2913. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  2914. # 'full' includes your app in the full installation and you
  2915. # can also add other variants, separated by spaces. The
  2916. # available variants will be detected automatically from the
  2917. # app scripts.
  2918. VARIANTS='full'
  2919. # If you want this to appear on the control panel About screen
  2920. SHOW_ON_ABOUT=1
  2921. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2922. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2923. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2924. MYAPPNAME_ONION_PORT=[port number]
  2925. MYAPPNAME_DB_PASSWORD=
  2926. # A directory where the data for this app exists
  2927. MYAPP_DATA_DIR=/var/lib/somedirectory
  2928. # List of configuration variables used by the app
  2929. myappname_variables=(ONION_ONLY
  2930. MY_USERNAME
  2931. SOME_IMPORTANT_CONFIG_VARIABLE
  2932. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2933. MY_FUNKY_AVATAR
  2934. MYAPPNAME_ONION_PORT
  2935. MYAPPNAME_DB_PASSWORD)
  2936. function change_password_myappname {
  2937. PASSWORD_USERNAME=&quot;$1&quot;
  2938. PASSWORD_NEW=&quot;$2&quot;
  2939. # Do something to change the password
  2940. }
  2941. function reconfigure_myappname {
  2942. echo -n ''
  2943. # Do something to delete existing keys/identity and
  2944. # generate new ones
  2945. }
  2946. function upgrade_myappname {
  2947. echo -n ''
  2948. # Do something to upgrade this app.
  2949. # If it's a debian package then it will be maintained by the
  2950. # operating system and you don't need anything here
  2951. }
  2952. function backup_local_myappname {
  2953. # If your app has a MariaDB/MySQL database
  2954. backup_database_to_usb myappname
  2955. # To backup a directory
  2956. backup_directory_to_usb ">Do something to change the password</a></span><a href="http://www.gnu.org/licenses/&gt;.
  2957. # 'full' includes your app in the full installation and you
  2958. # can also add other variants, separated by spaces. The
  2959. # available variants will be detected automatically from the
  2960. # app scripts.
  2961. VARIANTS='full'
  2962. # If you want this to appear on the control panel About screen
  2963. SHOW_ON_ABOUT=1
  2964. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  2965. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  2966. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  2967. MYAPPNAME_ONION_PORT=[port number]
  2968. MYAPPNAME_DB_PASSWORD=
  2969. # A directory where the data for this app exists
  2970. MYAPP_DATA_DIR=/var/lib/somedirectory
  2971. # List of configuration variables used by the app
  2972. myappname_variables=(ONION_ONLY
  2973. MY_USERNAME
  2974. SOME_IMPORTANT_CONFIG_VARIABLE
  2975. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  2976. MY_FUNKY_AVATAR
  2977. MYAPPNAME_ONION_PORT
  2978. MYAPPNAME_DB_PASSWORD)
  2979. function change_password_myappname {
  2980. PASSWORD_USERNAME=&quot;$1&quot;
  2981. PASSWORD_NEW=&quot;$2&quot;
  2982. # Do something to change the password
  2983. }
  2984. function reconfigure_myappname {
  2985. echo -n ''
  2986. # Do something to delete existing keys/identity and
  2987. # generate new ones
  2988. }
  2989. function upgrade_myappname {
  2990. echo -n ''
  2991. # Do something to upgrade this app.
  2992. # If it's a debian package then it will be maintained by the
  2993. # operating system and you don't need anything here
  2994. }
  2995. function backup_local_myappname {
  2996. # If your app has a MariaDB/MySQL database
  2997. backup_database_to_usb myappname
  2998. # To backup a directory
  2999. backup_directory_to_usb ">
  3000. }
  3001. </a><span class="org-keyword"><a href="http://www.gnu.org/licenses/&gt;.
  3002. # 'full' includes your app in the full installation and you
  3003. # can also add other variants, separated by spaces. The
  3004. # available variants will be detected automatically from the
  3005. # app scripts.
  3006. VARIANTS='full'
  3007. # If you want this to appear on the control panel About screen
  3008. SHOW_ON_ABOUT=1
  3009. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3010. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3011. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3012. MYAPPNAME_ONION_PORT=[port number]
  3013. MYAPPNAME_DB_PASSWORD=
  3014. # A directory where the data for this app exists
  3015. MYAPP_DATA_DIR=/var/lib/somedirectory
  3016. # List of configuration variables used by the app
  3017. myappname_variables=(ONION_ONLY
  3018. MY_USERNAME
  3019. SOME_IMPORTANT_CONFIG_VARIABLE
  3020. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3021. MY_FUNKY_AVATAR
  3022. MYAPPNAME_ONION_PORT
  3023. MYAPPNAME_DB_PASSWORD)
  3024. function change_password_myappname {
  3025. PASSWORD_USERNAME=&quot;$1&quot;
  3026. PASSWORD_NEW=&quot;$2&quot;
  3027. # Do something to change the password
  3028. }
  3029. function reconfigure_myappname {
  3030. echo -n ''
  3031. # Do something to delete existing keys/identity and
  3032. # generate new ones
  3033. }
  3034. function upgrade_myappname {
  3035. echo -n ''
  3036. # Do something to upgrade this app.
  3037. # If it's a debian package then it will be maintained by the
  3038. # operating system and you don't need anything here
  3039. }
  3040. function backup_local_myappname {
  3041. # If your app has a MariaDB/MySQL database
  3042. backup_database_to_usb myappname
  3043. # To backup a directory
  3044. backup_directory_to_usb ">function</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3045. # 'full' includes your app in the full installation and you
  3046. # can also add other variants, separated by spaces. The
  3047. # available variants will be detected automatically from the
  3048. # app scripts.
  3049. VARIANTS='full'
  3050. # If you want this to appear on the control panel About screen
  3051. SHOW_ON_ABOUT=1
  3052. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3053. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3054. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3055. MYAPPNAME_ONION_PORT=[port number]
  3056. MYAPPNAME_DB_PASSWORD=
  3057. # A directory where the data for this app exists
  3058. MYAPP_DATA_DIR=/var/lib/somedirectory
  3059. # List of configuration variables used by the app
  3060. myappname_variables=(ONION_ONLY
  3061. MY_USERNAME
  3062. SOME_IMPORTANT_CONFIG_VARIABLE
  3063. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3064. MY_FUNKY_AVATAR
  3065. MYAPPNAME_ONION_PORT
  3066. MYAPPNAME_DB_PASSWORD)
  3067. function change_password_myappname {
  3068. PASSWORD_USERNAME=&quot;$1&quot;
  3069. PASSWORD_NEW=&quot;$2&quot;
  3070. # Do something to change the password
  3071. }
  3072. function reconfigure_myappname {
  3073. echo -n ''
  3074. # Do something to delete existing keys/identity and
  3075. # generate new ones
  3076. }
  3077. function upgrade_myappname {
  3078. echo -n ''
  3079. # Do something to upgrade this app.
  3080. # If it's a debian package then it will be maintained by the
  3081. # operating system and you don't need anything here
  3082. }
  3083. function backup_local_myappname {
  3084. # If your app has a MariaDB/MySQL database
  3085. backup_database_to_usb myappname
  3086. # To backup a directory
  3087. backup_directory_to_usb "> </a><span class="org-function-name"><a href="http://www.gnu.org/licenses/&gt;.
  3088. # 'full' includes your app in the full installation and you
  3089. # can also add other variants, separated by spaces. The
  3090. # available variants will be detected automatically from the
  3091. # app scripts.
  3092. VARIANTS='full'
  3093. # If you want this to appear on the control panel About screen
  3094. SHOW_ON_ABOUT=1
  3095. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3096. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3097. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3098. MYAPPNAME_ONION_PORT=[port number]
  3099. MYAPPNAME_DB_PASSWORD=
  3100. # A directory where the data for this app exists
  3101. MYAPP_DATA_DIR=/var/lib/somedirectory
  3102. # List of configuration variables used by the app
  3103. myappname_variables=(ONION_ONLY
  3104. MY_USERNAME
  3105. SOME_IMPORTANT_CONFIG_VARIABLE
  3106. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3107. MY_FUNKY_AVATAR
  3108. MYAPPNAME_ONION_PORT
  3109. MYAPPNAME_DB_PASSWORD)
  3110. function change_password_myappname {
  3111. PASSWORD_USERNAME=&quot;$1&quot;
  3112. PASSWORD_NEW=&quot;$2&quot;
  3113. # Do something to change the password
  3114. }
  3115. function reconfigure_myappname {
  3116. echo -n ''
  3117. # Do something to delete existing keys/identity and
  3118. # generate new ones
  3119. }
  3120. function upgrade_myappname {
  3121. echo -n ''
  3122. # Do something to upgrade this app.
  3123. # If it's a debian package then it will be maintained by the
  3124. # operating system and you don't need anything here
  3125. }
  3126. function backup_local_myappname {
  3127. # If your app has a MariaDB/MySQL database
  3128. backup_database_to_usb myappname
  3129. # To backup a directory
  3130. backup_directory_to_usb ">reconfigure_myappname</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3131. # 'full' includes your app in the full installation and you
  3132. # can also add other variants, separated by spaces. The
  3133. # available variants will be detected automatically from the
  3134. # app scripts.
  3135. VARIANTS='full'
  3136. # If you want this to appear on the control panel About screen
  3137. SHOW_ON_ABOUT=1
  3138. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3139. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3140. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3141. MYAPPNAME_ONION_PORT=[port number]
  3142. MYAPPNAME_DB_PASSWORD=
  3143. # A directory where the data for this app exists
  3144. MYAPP_DATA_DIR=/var/lib/somedirectory
  3145. # List of configuration variables used by the app
  3146. myappname_variables=(ONION_ONLY
  3147. MY_USERNAME
  3148. SOME_IMPORTANT_CONFIG_VARIABLE
  3149. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3150. MY_FUNKY_AVATAR
  3151. MYAPPNAME_ONION_PORT
  3152. MYAPPNAME_DB_PASSWORD)
  3153. function change_password_myappname {
  3154. PASSWORD_USERNAME=&quot;$1&quot;
  3155. PASSWORD_NEW=&quot;$2&quot;
  3156. # Do something to change the password
  3157. }
  3158. function reconfigure_myappname {
  3159. echo -n ''
  3160. # Do something to delete existing keys/identity and
  3161. # generate new ones
  3162. }
  3163. function upgrade_myappname {
  3164. echo -n ''
  3165. # Do something to upgrade this app.
  3166. # If it's a debian package then it will be maintained by the
  3167. # operating system and you don't need anything here
  3168. }
  3169. function backup_local_myappname {
  3170. # If your app has a MariaDB/MySQL database
  3171. backup_database_to_usb myappname
  3172. # To backup a directory
  3173. backup_directory_to_usb "> {
  3174. </a><span class="org-builtin"><a href="http://www.gnu.org/licenses/&gt;.
  3175. # 'full' includes your app in the full installation and you
  3176. # can also add other variants, separated by spaces. The
  3177. # available variants will be detected automatically from the
  3178. # app scripts.
  3179. VARIANTS='full'
  3180. # If you want this to appear on the control panel About screen
  3181. SHOW_ON_ABOUT=1
  3182. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3183. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3184. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3185. MYAPPNAME_ONION_PORT=[port number]
  3186. MYAPPNAME_DB_PASSWORD=
  3187. # A directory where the data for this app exists
  3188. MYAPP_DATA_DIR=/var/lib/somedirectory
  3189. # List of configuration variables used by the app
  3190. myappname_variables=(ONION_ONLY
  3191. MY_USERNAME
  3192. SOME_IMPORTANT_CONFIG_VARIABLE
  3193. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3194. MY_FUNKY_AVATAR
  3195. MYAPPNAME_ONION_PORT
  3196. MYAPPNAME_DB_PASSWORD)
  3197. function change_password_myappname {
  3198. PASSWORD_USERNAME=&quot;$1&quot;
  3199. PASSWORD_NEW=&quot;$2&quot;
  3200. # Do something to change the password
  3201. }
  3202. function reconfigure_myappname {
  3203. echo -n ''
  3204. # Do something to delete existing keys/identity and
  3205. # generate new ones
  3206. }
  3207. function upgrade_myappname {
  3208. echo -n ''
  3209. # Do something to upgrade this app.
  3210. # If it's a debian package then it will be maintained by the
  3211. # operating system and you don't need anything here
  3212. }
  3213. function backup_local_myappname {
  3214. # If your app has a MariaDB/MySQL database
  3215. backup_database_to_usb myappname
  3216. # To backup a directory
  3217. backup_directory_to_usb ">echo</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3218. # 'full' includes your app in the full installation and you
  3219. # can also add other variants, separated by spaces. The
  3220. # available variants will be detected automatically from the
  3221. # app scripts.
  3222. VARIANTS='full'
  3223. # If you want this to appear on the control panel About screen
  3224. SHOW_ON_ABOUT=1
  3225. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3226. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3227. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3228. MYAPPNAME_ONION_PORT=[port number]
  3229. MYAPPNAME_DB_PASSWORD=
  3230. # A directory where the data for this app exists
  3231. MYAPP_DATA_DIR=/var/lib/somedirectory
  3232. # List of configuration variables used by the app
  3233. myappname_variables=(ONION_ONLY
  3234. MY_USERNAME
  3235. SOME_IMPORTANT_CONFIG_VARIABLE
  3236. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3237. MY_FUNKY_AVATAR
  3238. MYAPPNAME_ONION_PORT
  3239. MYAPPNAME_DB_PASSWORD)
  3240. function change_password_myappname {
  3241. PASSWORD_USERNAME=&quot;$1&quot;
  3242. PASSWORD_NEW=&quot;$2&quot;
  3243. # Do something to change the password
  3244. }
  3245. function reconfigure_myappname {
  3246. echo -n ''
  3247. # Do something to delete existing keys/identity and
  3248. # generate new ones
  3249. }
  3250. function upgrade_myappname {
  3251. echo -n ''
  3252. # Do something to upgrade this app.
  3253. # If it's a debian package then it will be maintained by the
  3254. # operating system and you don't need anything here
  3255. }
  3256. function backup_local_myappname {
  3257. # If your app has a MariaDB/MySQL database
  3258. backup_database_to_usb myappname
  3259. # To backup a directory
  3260. backup_directory_to_usb "> -n </a><span class="org-string"><a href="http://www.gnu.org/licenses/&gt;.
  3261. # 'full' includes your app in the full installation and you
  3262. # can also add other variants, separated by spaces. The
  3263. # available variants will be detected automatically from the
  3264. # app scripts.
  3265. VARIANTS='full'
  3266. # If you want this to appear on the control panel About screen
  3267. SHOW_ON_ABOUT=1
  3268. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3269. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3270. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3271. MYAPPNAME_ONION_PORT=[port number]
  3272. MYAPPNAME_DB_PASSWORD=
  3273. # A directory where the data for this app exists
  3274. MYAPP_DATA_DIR=/var/lib/somedirectory
  3275. # List of configuration variables used by the app
  3276. myappname_variables=(ONION_ONLY
  3277. MY_USERNAME
  3278. SOME_IMPORTANT_CONFIG_VARIABLE
  3279. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3280. MY_FUNKY_AVATAR
  3281. MYAPPNAME_ONION_PORT
  3282. MYAPPNAME_DB_PASSWORD)
  3283. function change_password_myappname {
  3284. PASSWORD_USERNAME=&quot;$1&quot;
  3285. PASSWORD_NEW=&quot;$2&quot;
  3286. # Do something to change the password
  3287. }
  3288. function reconfigure_myappname {
  3289. echo -n ''
  3290. # Do something to delete existing keys/identity and
  3291. # generate new ones
  3292. }
  3293. function upgrade_myappname {
  3294. echo -n ''
  3295. # Do something to upgrade this app.
  3296. # If it's a debian package then it will be maintained by the
  3297. # operating system and you don't need anything here
  3298. }
  3299. function backup_local_myappname {
  3300. # If your app has a MariaDB/MySQL database
  3301. backup_database_to_usb myappname
  3302. # To backup a directory
  3303. backup_directory_to_usb ">''</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3304. # 'full' includes your app in the full installation and you
  3305. # can also add other variants, separated by spaces. The
  3306. # available variants will be detected automatically from the
  3307. # app scripts.
  3308. VARIANTS='full'
  3309. # If you want this to appear on the control panel About screen
  3310. SHOW_ON_ABOUT=1
  3311. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3312. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3313. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3314. MYAPPNAME_ONION_PORT=[port number]
  3315. MYAPPNAME_DB_PASSWORD=
  3316. # A directory where the data for this app exists
  3317. MYAPP_DATA_DIR=/var/lib/somedirectory
  3318. # List of configuration variables used by the app
  3319. myappname_variables=(ONION_ONLY
  3320. MY_USERNAME
  3321. SOME_IMPORTANT_CONFIG_VARIABLE
  3322. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3323. MY_FUNKY_AVATAR
  3324. MYAPPNAME_ONION_PORT
  3325. MYAPPNAME_DB_PASSWORD)
  3326. function change_password_myappname {
  3327. PASSWORD_USERNAME=&quot;$1&quot;
  3328. PASSWORD_NEW=&quot;$2&quot;
  3329. # Do something to change the password
  3330. }
  3331. function reconfigure_myappname {
  3332. echo -n ''
  3333. # Do something to delete existing keys/identity and
  3334. # generate new ones
  3335. }
  3336. function upgrade_myappname {
  3337. echo -n ''
  3338. # Do something to upgrade this app.
  3339. # If it's a debian package then it will be maintained by the
  3340. # operating system and you don't need anything here
  3341. }
  3342. function backup_local_myappname {
  3343. # If your app has a MariaDB/MySQL database
  3344. backup_database_to_usb myappname
  3345. # To backup a directory
  3346. backup_directory_to_usb ">
  3347. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  3348. # 'full' includes your app in the full installation and you
  3349. # can also add other variants, separated by spaces. The
  3350. # available variants will be detected automatically from the
  3351. # app scripts.
  3352. VARIANTS='full'
  3353. # If you want this to appear on the control panel About screen
  3354. SHOW_ON_ABOUT=1
  3355. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3356. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3357. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3358. MYAPPNAME_ONION_PORT=[port number]
  3359. MYAPPNAME_DB_PASSWORD=
  3360. # A directory where the data for this app exists
  3361. MYAPP_DATA_DIR=/var/lib/somedirectory
  3362. # List of configuration variables used by the app
  3363. myappname_variables=(ONION_ONLY
  3364. MY_USERNAME
  3365. SOME_IMPORTANT_CONFIG_VARIABLE
  3366. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3367. MY_FUNKY_AVATAR
  3368. MYAPPNAME_ONION_PORT
  3369. MYAPPNAME_DB_PASSWORD)
  3370. function change_password_myappname {
  3371. PASSWORD_USERNAME=&quot;$1&quot;
  3372. PASSWORD_NEW=&quot;$2&quot;
  3373. # Do something to change the password
  3374. }
  3375. function reconfigure_myappname {
  3376. echo -n ''
  3377. # Do something to delete existing keys/identity and
  3378. # generate new ones
  3379. }
  3380. function upgrade_myappname {
  3381. echo -n ''
  3382. # Do something to upgrade this app.
  3383. # If it's a debian package then it will be maintained by the
  3384. # operating system and you don't need anything here
  3385. }
  3386. function backup_local_myappname {
  3387. # If your app has a MariaDB/MySQL database
  3388. backup_database_to_usb myappname
  3389. # To backup a directory
  3390. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  3391. # 'full' includes your app in the full installation and you
  3392. # can also add other variants, separated by spaces. The
  3393. # available variants will be detected automatically from the
  3394. # app scripts.
  3395. VARIANTS='full'
  3396. # If you want this to appear on the control panel About screen
  3397. SHOW_ON_ABOUT=1
  3398. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3399. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3400. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3401. MYAPPNAME_ONION_PORT=[port number]
  3402. MYAPPNAME_DB_PASSWORD=
  3403. # A directory where the data for this app exists
  3404. MYAPP_DATA_DIR=/var/lib/somedirectory
  3405. # List of configuration variables used by the app
  3406. myappname_variables=(ONION_ONLY
  3407. MY_USERNAME
  3408. SOME_IMPORTANT_CONFIG_VARIABLE
  3409. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3410. MY_FUNKY_AVATAR
  3411. MYAPPNAME_ONION_PORT
  3412. MYAPPNAME_DB_PASSWORD)
  3413. function change_password_myappname {
  3414. PASSWORD_USERNAME=&quot;$1&quot;
  3415. PASSWORD_NEW=&quot;$2&quot;
  3416. # Do something to change the password
  3417. }
  3418. function reconfigure_myappname {
  3419. echo -n ''
  3420. # Do something to delete existing keys/identity and
  3421. # generate new ones
  3422. }
  3423. function upgrade_myappname {
  3424. echo -n ''
  3425. # Do something to upgrade this app.
  3426. # If it's a debian package then it will be maintained by the
  3427. # operating system and you don't need anything here
  3428. }
  3429. function backup_local_myappname {
  3430. # If your app has a MariaDB/MySQL database
  3431. backup_database_to_usb myappname
  3432. # To backup a directory
  3433. backup_directory_to_usb ">Do something to delete existing keys/identity and</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3434. # 'full' includes your app in the full installation and you
  3435. # can also add other variants, separated by spaces. The
  3436. # available variants will be detected automatically from the
  3437. # app scripts.
  3438. VARIANTS='full'
  3439. # If you want this to appear on the control panel About screen
  3440. SHOW_ON_ABOUT=1
  3441. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3442. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3443. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3444. MYAPPNAME_ONION_PORT=[port number]
  3445. MYAPPNAME_DB_PASSWORD=
  3446. # A directory where the data for this app exists
  3447. MYAPP_DATA_DIR=/var/lib/somedirectory
  3448. # List of configuration variables used by the app
  3449. myappname_variables=(ONION_ONLY
  3450. MY_USERNAME
  3451. SOME_IMPORTANT_CONFIG_VARIABLE
  3452. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3453. MY_FUNKY_AVATAR
  3454. MYAPPNAME_ONION_PORT
  3455. MYAPPNAME_DB_PASSWORD)
  3456. function change_password_myappname {
  3457. PASSWORD_USERNAME=&quot;$1&quot;
  3458. PASSWORD_NEW=&quot;$2&quot;
  3459. # Do something to change the password
  3460. }
  3461. function reconfigure_myappname {
  3462. echo -n ''
  3463. # Do something to delete existing keys/identity and
  3464. # generate new ones
  3465. }
  3466. function upgrade_myappname {
  3467. echo -n ''
  3468. # Do something to upgrade this app.
  3469. # If it's a debian package then it will be maintained by the
  3470. # operating system and you don't need anything here
  3471. }
  3472. function backup_local_myappname {
  3473. # If your app has a MariaDB/MySQL database
  3474. backup_database_to_usb myappname
  3475. # To backup a directory
  3476. backup_directory_to_usb ">
  3477. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  3478. # 'full' includes your app in the full installation and you
  3479. # can also add other variants, separated by spaces. The
  3480. # available variants will be detected automatically from the
  3481. # app scripts.
  3482. VARIANTS='full'
  3483. # If you want this to appear on the control panel About screen
  3484. SHOW_ON_ABOUT=1
  3485. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3486. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3487. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3488. MYAPPNAME_ONION_PORT=[port number]
  3489. MYAPPNAME_DB_PASSWORD=
  3490. # A directory where the data for this app exists
  3491. MYAPP_DATA_DIR=/var/lib/somedirectory
  3492. # List of configuration variables used by the app
  3493. myappname_variables=(ONION_ONLY
  3494. MY_USERNAME
  3495. SOME_IMPORTANT_CONFIG_VARIABLE
  3496. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3497. MY_FUNKY_AVATAR
  3498. MYAPPNAME_ONION_PORT
  3499. MYAPPNAME_DB_PASSWORD)
  3500. function change_password_myappname {
  3501. PASSWORD_USERNAME=&quot;$1&quot;
  3502. PASSWORD_NEW=&quot;$2&quot;
  3503. # Do something to change the password
  3504. }
  3505. function reconfigure_myappname {
  3506. echo -n ''
  3507. # Do something to delete existing keys/identity and
  3508. # generate new ones
  3509. }
  3510. function upgrade_myappname {
  3511. echo -n ''
  3512. # Do something to upgrade this app.
  3513. # If it's a debian package then it will be maintained by the
  3514. # operating system and you don't need anything here
  3515. }
  3516. function backup_local_myappname {
  3517. # If your app has a MariaDB/MySQL database
  3518. backup_database_to_usb myappname
  3519. # To backup a directory
  3520. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  3521. # 'full' includes your app in the full installation and you
  3522. # can also add other variants, separated by spaces. The
  3523. # available variants will be detected automatically from the
  3524. # app scripts.
  3525. VARIANTS='full'
  3526. # If you want this to appear on the control panel About screen
  3527. SHOW_ON_ABOUT=1
  3528. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3529. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3530. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3531. MYAPPNAME_ONION_PORT=[port number]
  3532. MYAPPNAME_DB_PASSWORD=
  3533. # A directory where the data for this app exists
  3534. MYAPP_DATA_DIR=/var/lib/somedirectory
  3535. # List of configuration variables used by the app
  3536. myappname_variables=(ONION_ONLY
  3537. MY_USERNAME
  3538. SOME_IMPORTANT_CONFIG_VARIABLE
  3539. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3540. MY_FUNKY_AVATAR
  3541. MYAPPNAME_ONION_PORT
  3542. MYAPPNAME_DB_PASSWORD)
  3543. function change_password_myappname {
  3544. PASSWORD_USERNAME=&quot;$1&quot;
  3545. PASSWORD_NEW=&quot;$2&quot;
  3546. # Do something to change the password
  3547. }
  3548. function reconfigure_myappname {
  3549. echo -n ''
  3550. # Do something to delete existing keys/identity and
  3551. # generate new ones
  3552. }
  3553. function upgrade_myappname {
  3554. echo -n ''
  3555. # Do something to upgrade this app.
  3556. # If it's a debian package then it will be maintained by the
  3557. # operating system and you don't need anything here
  3558. }
  3559. function backup_local_myappname {
  3560. # If your app has a MariaDB/MySQL database
  3561. backup_database_to_usb myappname
  3562. # To backup a directory
  3563. backup_directory_to_usb ">generate new ones</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3564. # 'full' includes your app in the full installation and you
  3565. # can also add other variants, separated by spaces. The
  3566. # available variants will be detected automatically from the
  3567. # app scripts.
  3568. VARIANTS='full'
  3569. # If you want this to appear on the control panel About screen
  3570. SHOW_ON_ABOUT=1
  3571. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3572. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3573. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3574. MYAPPNAME_ONION_PORT=[port number]
  3575. MYAPPNAME_DB_PASSWORD=
  3576. # A directory where the data for this app exists
  3577. MYAPP_DATA_DIR=/var/lib/somedirectory
  3578. # List of configuration variables used by the app
  3579. myappname_variables=(ONION_ONLY
  3580. MY_USERNAME
  3581. SOME_IMPORTANT_CONFIG_VARIABLE
  3582. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3583. MY_FUNKY_AVATAR
  3584. MYAPPNAME_ONION_PORT
  3585. MYAPPNAME_DB_PASSWORD)
  3586. function change_password_myappname {
  3587. PASSWORD_USERNAME=&quot;$1&quot;
  3588. PASSWORD_NEW=&quot;$2&quot;
  3589. # Do something to change the password
  3590. }
  3591. function reconfigure_myappname {
  3592. echo -n ''
  3593. # Do something to delete existing keys/identity and
  3594. # generate new ones
  3595. }
  3596. function upgrade_myappname {
  3597. echo -n ''
  3598. # Do something to upgrade this app.
  3599. # If it's a debian package then it will be maintained by the
  3600. # operating system and you don't need anything here
  3601. }
  3602. function backup_local_myappname {
  3603. # If your app has a MariaDB/MySQL database
  3604. backup_database_to_usb myappname
  3605. # To backup a directory
  3606. backup_directory_to_usb ">
  3607. }
  3608. </a><span class="org-keyword"><a href="http://www.gnu.org/licenses/&gt;.
  3609. # 'full' includes your app in the full installation and you
  3610. # can also add other variants, separated by spaces. The
  3611. # available variants will be detected automatically from the
  3612. # app scripts.
  3613. VARIANTS='full'
  3614. # If you want this to appear on the control panel About screen
  3615. SHOW_ON_ABOUT=1
  3616. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3617. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3618. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3619. MYAPPNAME_ONION_PORT=[port number]
  3620. MYAPPNAME_DB_PASSWORD=
  3621. # A directory where the data for this app exists
  3622. MYAPP_DATA_DIR=/var/lib/somedirectory
  3623. # List of configuration variables used by the app
  3624. myappname_variables=(ONION_ONLY
  3625. MY_USERNAME
  3626. SOME_IMPORTANT_CONFIG_VARIABLE
  3627. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3628. MY_FUNKY_AVATAR
  3629. MYAPPNAME_ONION_PORT
  3630. MYAPPNAME_DB_PASSWORD)
  3631. function change_password_myappname {
  3632. PASSWORD_USERNAME=&quot;$1&quot;
  3633. PASSWORD_NEW=&quot;$2&quot;
  3634. # Do something to change the password
  3635. }
  3636. function reconfigure_myappname {
  3637. echo -n ''
  3638. # Do something to delete existing keys/identity and
  3639. # generate new ones
  3640. }
  3641. function upgrade_myappname {
  3642. echo -n ''
  3643. # Do something to upgrade this app.
  3644. # If it's a debian package then it will be maintained by the
  3645. # operating system and you don't need anything here
  3646. }
  3647. function backup_local_myappname {
  3648. # If your app has a MariaDB/MySQL database
  3649. backup_database_to_usb myappname
  3650. # To backup a directory
  3651. backup_directory_to_usb ">function</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3652. # 'full' includes your app in the full installation and you
  3653. # can also add other variants, separated by spaces. The
  3654. # available variants will be detected automatically from the
  3655. # app scripts.
  3656. VARIANTS='full'
  3657. # If you want this to appear on the control panel About screen
  3658. SHOW_ON_ABOUT=1
  3659. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3660. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3661. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3662. MYAPPNAME_ONION_PORT=[port number]
  3663. MYAPPNAME_DB_PASSWORD=
  3664. # A directory where the data for this app exists
  3665. MYAPP_DATA_DIR=/var/lib/somedirectory
  3666. # List of configuration variables used by the app
  3667. myappname_variables=(ONION_ONLY
  3668. MY_USERNAME
  3669. SOME_IMPORTANT_CONFIG_VARIABLE
  3670. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3671. MY_FUNKY_AVATAR
  3672. MYAPPNAME_ONION_PORT
  3673. MYAPPNAME_DB_PASSWORD)
  3674. function change_password_myappname {
  3675. PASSWORD_USERNAME=&quot;$1&quot;
  3676. PASSWORD_NEW=&quot;$2&quot;
  3677. # Do something to change the password
  3678. }
  3679. function reconfigure_myappname {
  3680. echo -n ''
  3681. # Do something to delete existing keys/identity and
  3682. # generate new ones
  3683. }
  3684. function upgrade_myappname {
  3685. echo -n ''
  3686. # Do something to upgrade this app.
  3687. # If it's a debian package then it will be maintained by the
  3688. # operating system and you don't need anything here
  3689. }
  3690. function backup_local_myappname {
  3691. # If your app has a MariaDB/MySQL database
  3692. backup_database_to_usb myappname
  3693. # To backup a directory
  3694. backup_directory_to_usb "> </a><span class="org-function-name"><a href="http://www.gnu.org/licenses/&gt;.
  3695. # 'full' includes your app in the full installation and you
  3696. # can also add other variants, separated by spaces. The
  3697. # available variants will be detected automatically from the
  3698. # app scripts.
  3699. VARIANTS='full'
  3700. # If you want this to appear on the control panel About screen
  3701. SHOW_ON_ABOUT=1
  3702. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3703. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3704. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3705. MYAPPNAME_ONION_PORT=[port number]
  3706. MYAPPNAME_DB_PASSWORD=
  3707. # A directory where the data for this app exists
  3708. MYAPP_DATA_DIR=/var/lib/somedirectory
  3709. # List of configuration variables used by the app
  3710. myappname_variables=(ONION_ONLY
  3711. MY_USERNAME
  3712. SOME_IMPORTANT_CONFIG_VARIABLE
  3713. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3714. MY_FUNKY_AVATAR
  3715. MYAPPNAME_ONION_PORT
  3716. MYAPPNAME_DB_PASSWORD)
  3717. function change_password_myappname {
  3718. PASSWORD_USERNAME=&quot;$1&quot;
  3719. PASSWORD_NEW=&quot;$2&quot;
  3720. # Do something to change the password
  3721. }
  3722. function reconfigure_myappname {
  3723. echo -n ''
  3724. # Do something to delete existing keys/identity and
  3725. # generate new ones
  3726. }
  3727. function upgrade_myappname {
  3728. echo -n ''
  3729. # Do something to upgrade this app.
  3730. # If it's a debian package then it will be maintained by the
  3731. # operating system and you don't need anything here
  3732. }
  3733. function backup_local_myappname {
  3734. # If your app has a MariaDB/MySQL database
  3735. backup_database_to_usb myappname
  3736. # To backup a directory
  3737. backup_directory_to_usb ">upgrade_myappname</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3738. # 'full' includes your app in the full installation and you
  3739. # can also add other variants, separated by spaces. The
  3740. # available variants will be detected automatically from the
  3741. # app scripts.
  3742. VARIANTS='full'
  3743. # If you want this to appear on the control panel About screen
  3744. SHOW_ON_ABOUT=1
  3745. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3746. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3747. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3748. MYAPPNAME_ONION_PORT=[port number]
  3749. MYAPPNAME_DB_PASSWORD=
  3750. # A directory where the data for this app exists
  3751. MYAPP_DATA_DIR=/var/lib/somedirectory
  3752. # List of configuration variables used by the app
  3753. myappname_variables=(ONION_ONLY
  3754. MY_USERNAME
  3755. SOME_IMPORTANT_CONFIG_VARIABLE
  3756. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3757. MY_FUNKY_AVATAR
  3758. MYAPPNAME_ONION_PORT
  3759. MYAPPNAME_DB_PASSWORD)
  3760. function change_password_myappname {
  3761. PASSWORD_USERNAME=&quot;$1&quot;
  3762. PASSWORD_NEW=&quot;$2&quot;
  3763. # Do something to change the password
  3764. }
  3765. function reconfigure_myappname {
  3766. echo -n ''
  3767. # Do something to delete existing keys/identity and
  3768. # generate new ones
  3769. }
  3770. function upgrade_myappname {
  3771. echo -n ''
  3772. # Do something to upgrade this app.
  3773. # If it's a debian package then it will be maintained by the
  3774. # operating system and you don't need anything here
  3775. }
  3776. function backup_local_myappname {
  3777. # If your app has a MariaDB/MySQL database
  3778. backup_database_to_usb myappname
  3779. # To backup a directory
  3780. backup_directory_to_usb "> {
  3781. </a><span class="org-builtin"><a href="http://www.gnu.org/licenses/&gt;.
  3782. # 'full' includes your app in the full installation and you
  3783. # can also add other variants, separated by spaces. The
  3784. # available variants will be detected automatically from the
  3785. # app scripts.
  3786. VARIANTS='full'
  3787. # If you want this to appear on the control panel About screen
  3788. SHOW_ON_ABOUT=1
  3789. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3790. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3791. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3792. MYAPPNAME_ONION_PORT=[port number]
  3793. MYAPPNAME_DB_PASSWORD=
  3794. # A directory where the data for this app exists
  3795. MYAPP_DATA_DIR=/var/lib/somedirectory
  3796. # List of configuration variables used by the app
  3797. myappname_variables=(ONION_ONLY
  3798. MY_USERNAME
  3799. SOME_IMPORTANT_CONFIG_VARIABLE
  3800. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3801. MY_FUNKY_AVATAR
  3802. MYAPPNAME_ONION_PORT
  3803. MYAPPNAME_DB_PASSWORD)
  3804. function change_password_myappname {
  3805. PASSWORD_USERNAME=&quot;$1&quot;
  3806. PASSWORD_NEW=&quot;$2&quot;
  3807. # Do something to change the password
  3808. }
  3809. function reconfigure_myappname {
  3810. echo -n ''
  3811. # Do something to delete existing keys/identity and
  3812. # generate new ones
  3813. }
  3814. function upgrade_myappname {
  3815. echo -n ''
  3816. # Do something to upgrade this app.
  3817. # If it's a debian package then it will be maintained by the
  3818. # operating system and you don't need anything here
  3819. }
  3820. function backup_local_myappname {
  3821. # If your app has a MariaDB/MySQL database
  3822. backup_database_to_usb myappname
  3823. # To backup a directory
  3824. backup_directory_to_usb ">echo</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3825. # 'full' includes your app in the full installation and you
  3826. # can also add other variants, separated by spaces. The
  3827. # available variants will be detected automatically from the
  3828. # app scripts.
  3829. VARIANTS='full'
  3830. # If you want this to appear on the control panel About screen
  3831. SHOW_ON_ABOUT=1
  3832. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3833. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3834. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3835. MYAPPNAME_ONION_PORT=[port number]
  3836. MYAPPNAME_DB_PASSWORD=
  3837. # A directory where the data for this app exists
  3838. MYAPP_DATA_DIR=/var/lib/somedirectory
  3839. # List of configuration variables used by the app
  3840. myappname_variables=(ONION_ONLY
  3841. MY_USERNAME
  3842. SOME_IMPORTANT_CONFIG_VARIABLE
  3843. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3844. MY_FUNKY_AVATAR
  3845. MYAPPNAME_ONION_PORT
  3846. MYAPPNAME_DB_PASSWORD)
  3847. function change_password_myappname {
  3848. PASSWORD_USERNAME=&quot;$1&quot;
  3849. PASSWORD_NEW=&quot;$2&quot;
  3850. # Do something to change the password
  3851. }
  3852. function reconfigure_myappname {
  3853. echo -n ''
  3854. # Do something to delete existing keys/identity and
  3855. # generate new ones
  3856. }
  3857. function upgrade_myappname {
  3858. echo -n ''
  3859. # Do something to upgrade this app.
  3860. # If it's a debian package then it will be maintained by the
  3861. # operating system and you don't need anything here
  3862. }
  3863. function backup_local_myappname {
  3864. # If your app has a MariaDB/MySQL database
  3865. backup_database_to_usb myappname
  3866. # To backup a directory
  3867. backup_directory_to_usb "> -n </a><span class="org-string"><a href="http://www.gnu.org/licenses/&gt;.
  3868. # 'full' includes your app in the full installation and you
  3869. # can also add other variants, separated by spaces. The
  3870. # available variants will be detected automatically from the
  3871. # app scripts.
  3872. VARIANTS='full'
  3873. # If you want this to appear on the control panel About screen
  3874. SHOW_ON_ABOUT=1
  3875. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3876. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3877. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3878. MYAPPNAME_ONION_PORT=[port number]
  3879. MYAPPNAME_DB_PASSWORD=
  3880. # A directory where the data for this app exists
  3881. MYAPP_DATA_DIR=/var/lib/somedirectory
  3882. # List of configuration variables used by the app
  3883. myappname_variables=(ONION_ONLY
  3884. MY_USERNAME
  3885. SOME_IMPORTANT_CONFIG_VARIABLE
  3886. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3887. MY_FUNKY_AVATAR
  3888. MYAPPNAME_ONION_PORT
  3889. MYAPPNAME_DB_PASSWORD)
  3890. function change_password_myappname {
  3891. PASSWORD_USERNAME=&quot;$1&quot;
  3892. PASSWORD_NEW=&quot;$2&quot;
  3893. # Do something to change the password
  3894. }
  3895. function reconfigure_myappname {
  3896. echo -n ''
  3897. # Do something to delete existing keys/identity and
  3898. # generate new ones
  3899. }
  3900. function upgrade_myappname {
  3901. echo -n ''
  3902. # Do something to upgrade this app.
  3903. # If it's a debian package then it will be maintained by the
  3904. # operating system and you don't need anything here
  3905. }
  3906. function backup_local_myappname {
  3907. # If your app has a MariaDB/MySQL database
  3908. backup_database_to_usb myappname
  3909. # To backup a directory
  3910. backup_directory_to_usb ">''</a></span><a href="http://www.gnu.org/licenses/&gt;.
  3911. # 'full' includes your app in the full installation and you
  3912. # can also add other variants, separated by spaces. The
  3913. # available variants will be detected automatically from the
  3914. # app scripts.
  3915. VARIANTS='full'
  3916. # If you want this to appear on the control panel About screen
  3917. SHOW_ON_ABOUT=1
  3918. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3919. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3920. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3921. MYAPPNAME_ONION_PORT=[port number]
  3922. MYAPPNAME_DB_PASSWORD=
  3923. # A directory where the data for this app exists
  3924. MYAPP_DATA_DIR=/var/lib/somedirectory
  3925. # List of configuration variables used by the app
  3926. myappname_variables=(ONION_ONLY
  3927. MY_USERNAME
  3928. SOME_IMPORTANT_CONFIG_VARIABLE
  3929. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3930. MY_FUNKY_AVATAR
  3931. MYAPPNAME_ONION_PORT
  3932. MYAPPNAME_DB_PASSWORD)
  3933. function change_password_myappname {
  3934. PASSWORD_USERNAME=&quot;$1&quot;
  3935. PASSWORD_NEW=&quot;$2&quot;
  3936. # Do something to change the password
  3937. }
  3938. function reconfigure_myappname {
  3939. echo -n ''
  3940. # Do something to delete existing keys/identity and
  3941. # generate new ones
  3942. }
  3943. function upgrade_myappname {
  3944. echo -n ''
  3945. # Do something to upgrade this app.
  3946. # If it's a debian package then it will be maintained by the
  3947. # operating system and you don't need anything here
  3948. }
  3949. function backup_local_myappname {
  3950. # If your app has a MariaDB/MySQL database
  3951. backup_database_to_usb myappname
  3952. # To backup a directory
  3953. backup_directory_to_usb ">
  3954. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  3955. # 'full' includes your app in the full installation and you
  3956. # can also add other variants, separated by spaces. The
  3957. # available variants will be detected automatically from the
  3958. # app scripts.
  3959. VARIANTS='full'
  3960. # If you want this to appear on the control panel About screen
  3961. SHOW_ON_ABOUT=1
  3962. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  3963. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  3964. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  3965. MYAPPNAME_ONION_PORT=[port number]
  3966. MYAPPNAME_DB_PASSWORD=
  3967. # A directory where the data for this app exists
  3968. MYAPP_DATA_DIR=/var/lib/somedirectory
  3969. # List of configuration variables used by the app
  3970. myappname_variables=(ONION_ONLY
  3971. MY_USERNAME
  3972. SOME_IMPORTANT_CONFIG_VARIABLE
  3973. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  3974. MY_FUNKY_AVATAR
  3975. MYAPPNAME_ONION_PORT
  3976. MYAPPNAME_DB_PASSWORD)
  3977. function change_password_myappname {
  3978. PASSWORD_USERNAME=&quot;$1&quot;
  3979. PASSWORD_NEW=&quot;$2&quot;
  3980. # Do something to change the password
  3981. }
  3982. function reconfigure_myappname {
  3983. echo -n ''
  3984. # Do something to delete existing keys/identity and
  3985. # generate new ones
  3986. }
  3987. function upgrade_myappname {
  3988. echo -n ''
  3989. # Do something to upgrade this app.
  3990. # If it's a debian package then it will be maintained by the
  3991. # operating system and you don't need anything here
  3992. }
  3993. function backup_local_myappname {
  3994. # If your app has a MariaDB/MySQL database
  3995. backup_database_to_usb myappname
  3996. # To backup a directory
  3997. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  3998. # 'full' includes your app in the full installation and you
  3999. # can also add other variants, separated by spaces. The
  4000. # available variants will be detected automatically from the
  4001. # app scripts.
  4002. VARIANTS='full'
  4003. # If you want this to appear on the control panel About screen
  4004. SHOW_ON_ABOUT=1
  4005. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4006. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4007. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4008. MYAPPNAME_ONION_PORT=[port number]
  4009. MYAPPNAME_DB_PASSWORD=
  4010. # A directory where the data for this app exists
  4011. MYAPP_DATA_DIR=/var/lib/somedirectory
  4012. # List of configuration variables used by the app
  4013. myappname_variables=(ONION_ONLY
  4014. MY_USERNAME
  4015. SOME_IMPORTANT_CONFIG_VARIABLE
  4016. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4017. MY_FUNKY_AVATAR
  4018. MYAPPNAME_ONION_PORT
  4019. MYAPPNAME_DB_PASSWORD)
  4020. function change_password_myappname {
  4021. PASSWORD_USERNAME=&quot;$1&quot;
  4022. PASSWORD_NEW=&quot;$2&quot;
  4023. # Do something to change the password
  4024. }
  4025. function reconfigure_myappname {
  4026. echo -n ''
  4027. # Do something to delete existing keys/identity and
  4028. # generate new ones
  4029. }
  4030. function upgrade_myappname {
  4031. echo -n ''
  4032. # Do something to upgrade this app.
  4033. # If it's a debian package then it will be maintained by the
  4034. # operating system and you don't need anything here
  4035. }
  4036. function backup_local_myappname {
  4037. # If your app has a MariaDB/MySQL database
  4038. backup_database_to_usb myappname
  4039. # To backup a directory
  4040. backup_directory_to_usb ">Do something to upgrade this app.</a></span><a href="http://www.gnu.org/licenses/&gt;.
  4041. # 'full' includes your app in the full installation and you
  4042. # can also add other variants, separated by spaces. The
  4043. # available variants will be detected automatically from the
  4044. # app scripts.
  4045. VARIANTS='full'
  4046. # If you want this to appear on the control panel About screen
  4047. SHOW_ON_ABOUT=1
  4048. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4049. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4050. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4051. MYAPPNAME_ONION_PORT=[port number]
  4052. MYAPPNAME_DB_PASSWORD=
  4053. # A directory where the data for this app exists
  4054. MYAPP_DATA_DIR=/var/lib/somedirectory
  4055. # List of configuration variables used by the app
  4056. myappname_variables=(ONION_ONLY
  4057. MY_USERNAME
  4058. SOME_IMPORTANT_CONFIG_VARIABLE
  4059. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4060. MY_FUNKY_AVATAR
  4061. MYAPPNAME_ONION_PORT
  4062. MYAPPNAME_DB_PASSWORD)
  4063. function change_password_myappname {
  4064. PASSWORD_USERNAME=&quot;$1&quot;
  4065. PASSWORD_NEW=&quot;$2&quot;
  4066. # Do something to change the password
  4067. }
  4068. function reconfigure_myappname {
  4069. echo -n ''
  4070. # Do something to delete existing keys/identity and
  4071. # generate new ones
  4072. }
  4073. function upgrade_myappname {
  4074. echo -n ''
  4075. # Do something to upgrade this app.
  4076. # If it's a debian package then it will be maintained by the
  4077. # operating system and you don't need anything here
  4078. }
  4079. function backup_local_myappname {
  4080. # If your app has a MariaDB/MySQL database
  4081. backup_database_to_usb myappname
  4082. # To backup a directory
  4083. backup_directory_to_usb ">
  4084. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  4085. # 'full' includes your app in the full installation and you
  4086. # can also add other variants, separated by spaces. The
  4087. # available variants will be detected automatically from the
  4088. # app scripts.
  4089. VARIANTS='full'
  4090. # If you want this to appear on the control panel About screen
  4091. SHOW_ON_ABOUT=1
  4092. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4093. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4094. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4095. MYAPPNAME_ONION_PORT=[port number]
  4096. MYAPPNAME_DB_PASSWORD=
  4097. # A directory where the data for this app exists
  4098. MYAPP_DATA_DIR=/var/lib/somedirectory
  4099. # List of configuration variables used by the app
  4100. myappname_variables=(ONION_ONLY
  4101. MY_USERNAME
  4102. SOME_IMPORTANT_CONFIG_VARIABLE
  4103. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4104. MY_FUNKY_AVATAR
  4105. MYAPPNAME_ONION_PORT
  4106. MYAPPNAME_DB_PASSWORD)
  4107. function change_password_myappname {
  4108. PASSWORD_USERNAME=&quot;$1&quot;
  4109. PASSWORD_NEW=&quot;$2&quot;
  4110. # Do something to change the password
  4111. }
  4112. function reconfigure_myappname {
  4113. echo -n ''
  4114. # Do something to delete existing keys/identity and
  4115. # generate new ones
  4116. }
  4117. function upgrade_myappname {
  4118. echo -n ''
  4119. # Do something to upgrade this app.
  4120. # If it's a debian package then it will be maintained by the
  4121. # operating system and you don't need anything here
  4122. }
  4123. function backup_local_myappname {
  4124. # If your app has a MariaDB/MySQL database
  4125. backup_database_to_usb myappname
  4126. # To backup a directory
  4127. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  4128. # 'full' includes your app in the full installation and you
  4129. # can also add other variants, separated by spaces. The
  4130. # available variants will be detected automatically from the
  4131. # app scripts.
  4132. VARIANTS='full'
  4133. # If you want this to appear on the control panel About screen
  4134. SHOW_ON_ABOUT=1
  4135. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4136. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4137. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4138. MYAPPNAME_ONION_PORT=[port number]
  4139. MYAPPNAME_DB_PASSWORD=
  4140. # A directory where the data for this app exists
  4141. MYAPP_DATA_DIR=/var/lib/somedirectory
  4142. # List of configuration variables used by the app
  4143. myappname_variables=(ONION_ONLY
  4144. MY_USERNAME
  4145. SOME_IMPORTANT_CONFIG_VARIABLE
  4146. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4147. MY_FUNKY_AVATAR
  4148. MYAPPNAME_ONION_PORT
  4149. MYAPPNAME_DB_PASSWORD)
  4150. function change_password_myappname {
  4151. PASSWORD_USERNAME=&quot;$1&quot;
  4152. PASSWORD_NEW=&quot;$2&quot;
  4153. # Do something to change the password
  4154. }
  4155. function reconfigure_myappname {
  4156. echo -n ''
  4157. # Do something to delete existing keys/identity and
  4158. # generate new ones
  4159. }
  4160. function upgrade_myappname {
  4161. echo -n ''
  4162. # Do something to upgrade this app.
  4163. # If it's a debian package then it will be maintained by the
  4164. # operating system and you don't need anything here
  4165. }
  4166. function backup_local_myappname {
  4167. # If your app has a MariaDB/MySQL database
  4168. backup_database_to_usb myappname
  4169. # To backup a directory
  4170. backup_directory_to_usb ">If it's a debian package then it will be maintained by the</a></span><a href="http://www.gnu.org/licenses/&gt;.
  4171. # 'full' includes your app in the full installation and you
  4172. # can also add other variants, separated by spaces. The
  4173. # available variants will be detected automatically from the
  4174. # app scripts.
  4175. VARIANTS='full'
  4176. # If you want this to appear on the control panel About screen
  4177. SHOW_ON_ABOUT=1
  4178. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4179. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4180. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4181. MYAPPNAME_ONION_PORT=[port number]
  4182. MYAPPNAME_DB_PASSWORD=
  4183. # A directory where the data for this app exists
  4184. MYAPP_DATA_DIR=/var/lib/somedirectory
  4185. # List of configuration variables used by the app
  4186. myappname_variables=(ONION_ONLY
  4187. MY_USERNAME
  4188. SOME_IMPORTANT_CONFIG_VARIABLE
  4189. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4190. MY_FUNKY_AVATAR
  4191. MYAPPNAME_ONION_PORT
  4192. MYAPPNAME_DB_PASSWORD)
  4193. function change_password_myappname {
  4194. PASSWORD_USERNAME=&quot;$1&quot;
  4195. PASSWORD_NEW=&quot;$2&quot;
  4196. # Do something to change the password
  4197. }
  4198. function reconfigure_myappname {
  4199. echo -n ''
  4200. # Do something to delete existing keys/identity and
  4201. # generate new ones
  4202. }
  4203. function upgrade_myappname {
  4204. echo -n ''
  4205. # Do something to upgrade this app.
  4206. # If it's a debian package then it will be maintained by the
  4207. # operating system and you don't need anything here
  4208. }
  4209. function backup_local_myappname {
  4210. # If your app has a MariaDB/MySQL database
  4211. backup_database_to_usb myappname
  4212. # To backup a directory
  4213. backup_directory_to_usb ">
  4214. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  4215. # 'full' includes your app in the full installation and you
  4216. # can also add other variants, separated by spaces. The
  4217. # available variants will be detected automatically from the
  4218. # app scripts.
  4219. VARIANTS='full'
  4220. # If you want this to appear on the control panel About screen
  4221. SHOW_ON_ABOUT=1
  4222. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4223. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4224. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4225. MYAPPNAME_ONION_PORT=[port number]
  4226. MYAPPNAME_DB_PASSWORD=
  4227. # A directory where the data for this app exists
  4228. MYAPP_DATA_DIR=/var/lib/somedirectory
  4229. # List of configuration variables used by the app
  4230. myappname_variables=(ONION_ONLY
  4231. MY_USERNAME
  4232. SOME_IMPORTANT_CONFIG_VARIABLE
  4233. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4234. MY_FUNKY_AVATAR
  4235. MYAPPNAME_ONION_PORT
  4236. MYAPPNAME_DB_PASSWORD)
  4237. function change_password_myappname {
  4238. PASSWORD_USERNAME=&quot;$1&quot;
  4239. PASSWORD_NEW=&quot;$2&quot;
  4240. # Do something to change the password
  4241. }
  4242. function reconfigure_myappname {
  4243. echo -n ''
  4244. # Do something to delete existing keys/identity and
  4245. # generate new ones
  4246. }
  4247. function upgrade_myappname {
  4248. echo -n ''
  4249. # Do something to upgrade this app.
  4250. # If it's a debian package then it will be maintained by the
  4251. # operating system and you don't need anything here
  4252. }
  4253. function backup_local_myappname {
  4254. # If your app has a MariaDB/MySQL database
  4255. backup_database_to_usb myappname
  4256. # To backup a directory
  4257. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  4258. # 'full' includes your app in the full installation and you
  4259. # can also add other variants, separated by spaces. The
  4260. # available variants will be detected automatically from the
  4261. # app scripts.
  4262. VARIANTS='full'
  4263. # If you want this to appear on the control panel About screen
  4264. SHOW_ON_ABOUT=1
  4265. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4266. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4267. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4268. MYAPPNAME_ONION_PORT=[port number]
  4269. MYAPPNAME_DB_PASSWORD=
  4270. # A directory where the data for this app exists
  4271. MYAPP_DATA_DIR=/var/lib/somedirectory
  4272. # List of configuration variables used by the app
  4273. myappname_variables=(ONION_ONLY
  4274. MY_USERNAME
  4275. SOME_IMPORTANT_CONFIG_VARIABLE
  4276. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4277. MY_FUNKY_AVATAR
  4278. MYAPPNAME_ONION_PORT
  4279. MYAPPNAME_DB_PASSWORD)
  4280. function change_password_myappname {
  4281. PASSWORD_USERNAME=&quot;$1&quot;
  4282. PASSWORD_NEW=&quot;$2&quot;
  4283. # Do something to change the password
  4284. }
  4285. function reconfigure_myappname {
  4286. echo -n ''
  4287. # Do something to delete existing keys/identity and
  4288. # generate new ones
  4289. }
  4290. function upgrade_myappname {
  4291. echo -n ''
  4292. # Do something to upgrade this app.
  4293. # If it's a debian package then it will be maintained by the
  4294. # operating system and you don't need anything here
  4295. }
  4296. function backup_local_myappname {
  4297. # If your app has a MariaDB/MySQL database
  4298. backup_database_to_usb myappname
  4299. # To backup a directory
  4300. backup_directory_to_usb ">operating system and you don't need anything here</a></span><a href="http://www.gnu.org/licenses/&gt;.
  4301. # 'full' includes your app in the full installation and you
  4302. # can also add other variants, separated by spaces. The
  4303. # available variants will be detected automatically from the
  4304. # app scripts.
  4305. VARIANTS='full'
  4306. # If you want this to appear on the control panel About screen
  4307. SHOW_ON_ABOUT=1
  4308. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4309. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4310. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4311. MYAPPNAME_ONION_PORT=[port number]
  4312. MYAPPNAME_DB_PASSWORD=
  4313. # A directory where the data for this app exists
  4314. MYAPP_DATA_DIR=/var/lib/somedirectory
  4315. # List of configuration variables used by the app
  4316. myappname_variables=(ONION_ONLY
  4317. MY_USERNAME
  4318. SOME_IMPORTANT_CONFIG_VARIABLE
  4319. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4320. MY_FUNKY_AVATAR
  4321. MYAPPNAME_ONION_PORT
  4322. MYAPPNAME_DB_PASSWORD)
  4323. function change_password_myappname {
  4324. PASSWORD_USERNAME=&quot;$1&quot;
  4325. PASSWORD_NEW=&quot;$2&quot;
  4326. # Do something to change the password
  4327. }
  4328. function reconfigure_myappname {
  4329. echo -n ''
  4330. # Do something to delete existing keys/identity and
  4331. # generate new ones
  4332. }
  4333. function upgrade_myappname {
  4334. echo -n ''
  4335. # Do something to upgrade this app.
  4336. # If it's a debian package then it will be maintained by the
  4337. # operating system and you don't need anything here
  4338. }
  4339. function backup_local_myappname {
  4340. # If your app has a MariaDB/MySQL database
  4341. backup_database_to_usb myappname
  4342. # To backup a directory
  4343. backup_directory_to_usb ">
  4344. }
  4345. </a><span class="org-keyword"><a href="http://www.gnu.org/licenses/&gt;.
  4346. # 'full' includes your app in the full installation and you
  4347. # can also add other variants, separated by spaces. The
  4348. # available variants will be detected automatically from the
  4349. # app scripts.
  4350. VARIANTS='full'
  4351. # If you want this to appear on the control panel About screen
  4352. SHOW_ON_ABOUT=1
  4353. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4354. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4355. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4356. MYAPPNAME_ONION_PORT=[port number]
  4357. MYAPPNAME_DB_PASSWORD=
  4358. # A directory where the data for this app exists
  4359. MYAPP_DATA_DIR=/var/lib/somedirectory
  4360. # List of configuration variables used by the app
  4361. myappname_variables=(ONION_ONLY
  4362. MY_USERNAME
  4363. SOME_IMPORTANT_CONFIG_VARIABLE
  4364. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4365. MY_FUNKY_AVATAR
  4366. MYAPPNAME_ONION_PORT
  4367. MYAPPNAME_DB_PASSWORD)
  4368. function change_password_myappname {
  4369. PASSWORD_USERNAME=&quot;$1&quot;
  4370. PASSWORD_NEW=&quot;$2&quot;
  4371. # Do something to change the password
  4372. }
  4373. function reconfigure_myappname {
  4374. echo -n ''
  4375. # Do something to delete existing keys/identity and
  4376. # generate new ones
  4377. }
  4378. function upgrade_myappname {
  4379. echo -n ''
  4380. # Do something to upgrade this app.
  4381. # If it's a debian package then it will be maintained by the
  4382. # operating system and you don't need anything here
  4383. }
  4384. function backup_local_myappname {
  4385. # If your app has a MariaDB/MySQL database
  4386. backup_database_to_usb myappname
  4387. # To backup a directory
  4388. backup_directory_to_usb ">function</a></span><a href="http://www.gnu.org/licenses/&gt;.
  4389. # 'full' includes your app in the full installation and you
  4390. # can also add other variants, separated by spaces. The
  4391. # available variants will be detected automatically from the
  4392. # app scripts.
  4393. VARIANTS='full'
  4394. # If you want this to appear on the control panel About screen
  4395. SHOW_ON_ABOUT=1
  4396. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4397. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4398. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4399. MYAPPNAME_ONION_PORT=[port number]
  4400. MYAPPNAME_DB_PASSWORD=
  4401. # A directory where the data for this app exists
  4402. MYAPP_DATA_DIR=/var/lib/somedirectory
  4403. # List of configuration variables used by the app
  4404. myappname_variables=(ONION_ONLY
  4405. MY_USERNAME
  4406. SOME_IMPORTANT_CONFIG_VARIABLE
  4407. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4408. MY_FUNKY_AVATAR
  4409. MYAPPNAME_ONION_PORT
  4410. MYAPPNAME_DB_PASSWORD)
  4411. function change_password_myappname {
  4412. PASSWORD_USERNAME=&quot;$1&quot;
  4413. PASSWORD_NEW=&quot;$2&quot;
  4414. # Do something to change the password
  4415. }
  4416. function reconfigure_myappname {
  4417. echo -n ''
  4418. # Do something to delete existing keys/identity and
  4419. # generate new ones
  4420. }
  4421. function upgrade_myappname {
  4422. echo -n ''
  4423. # Do something to upgrade this app.
  4424. # If it's a debian package then it will be maintained by the
  4425. # operating system and you don't need anything here
  4426. }
  4427. function backup_local_myappname {
  4428. # If your app has a MariaDB/MySQL database
  4429. backup_database_to_usb myappname
  4430. # To backup a directory
  4431. backup_directory_to_usb "> </a><span class="org-function-name"><a href="http://www.gnu.org/licenses/&gt;.
  4432. # 'full' includes your app in the full installation and you
  4433. # can also add other variants, separated by spaces. The
  4434. # available variants will be detected automatically from the
  4435. # app scripts.
  4436. VARIANTS='full'
  4437. # If you want this to appear on the control panel About screen
  4438. SHOW_ON_ABOUT=1
  4439. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4440. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4441. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4442. MYAPPNAME_ONION_PORT=[port number]
  4443. MYAPPNAME_DB_PASSWORD=
  4444. # A directory where the data for this app exists
  4445. MYAPP_DATA_DIR=/var/lib/somedirectory
  4446. # List of configuration variables used by the app
  4447. myappname_variables=(ONION_ONLY
  4448. MY_USERNAME
  4449. SOME_IMPORTANT_CONFIG_VARIABLE
  4450. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4451. MY_FUNKY_AVATAR
  4452. MYAPPNAME_ONION_PORT
  4453. MYAPPNAME_DB_PASSWORD)
  4454. function change_password_myappname {
  4455. PASSWORD_USERNAME=&quot;$1&quot;
  4456. PASSWORD_NEW=&quot;$2&quot;
  4457. # Do something to change the password
  4458. }
  4459. function reconfigure_myappname {
  4460. echo -n ''
  4461. # Do something to delete existing keys/identity and
  4462. # generate new ones
  4463. }
  4464. function upgrade_myappname {
  4465. echo -n ''
  4466. # Do something to upgrade this app.
  4467. # If it's a debian package then it will be maintained by the
  4468. # operating system and you don't need anything here
  4469. }
  4470. function backup_local_myappname {
  4471. # If your app has a MariaDB/MySQL database
  4472. backup_database_to_usb myappname
  4473. # To backup a directory
  4474. backup_directory_to_usb ">backup_local_myappname</a></span><a href="http://www.gnu.org/licenses/&gt;.
  4475. # 'full' includes your app in the full installation and you
  4476. # can also add other variants, separated by spaces. The
  4477. # available variants will be detected automatically from the
  4478. # app scripts.
  4479. VARIANTS='full'
  4480. # If you want this to appear on the control panel About screen
  4481. SHOW_ON_ABOUT=1
  4482. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4483. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4484. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4485. MYAPPNAME_ONION_PORT=[port number]
  4486. MYAPPNAME_DB_PASSWORD=
  4487. # A directory where the data for this app exists
  4488. MYAPP_DATA_DIR=/var/lib/somedirectory
  4489. # List of configuration variables used by the app
  4490. myappname_variables=(ONION_ONLY
  4491. MY_USERNAME
  4492. SOME_IMPORTANT_CONFIG_VARIABLE
  4493. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4494. MY_FUNKY_AVATAR
  4495. MYAPPNAME_ONION_PORT
  4496. MYAPPNAME_DB_PASSWORD)
  4497. function change_password_myappname {
  4498. PASSWORD_USERNAME=&quot;$1&quot;
  4499. PASSWORD_NEW=&quot;$2&quot;
  4500. # Do something to change the password
  4501. }
  4502. function reconfigure_myappname {
  4503. echo -n ''
  4504. # Do something to delete existing keys/identity and
  4505. # generate new ones
  4506. }
  4507. function upgrade_myappname {
  4508. echo -n ''
  4509. # Do something to upgrade this app.
  4510. # If it's a debian package then it will be maintained by the
  4511. # operating system and you don't need anything here
  4512. }
  4513. function backup_local_myappname {
  4514. # If your app has a MariaDB/MySQL database
  4515. backup_database_to_usb myappname
  4516. # To backup a directory
  4517. backup_directory_to_usb "> {
  4518. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  4519. # 'full' includes your app in the full installation and you
  4520. # can also add other variants, separated by spaces. The
  4521. # available variants will be detected automatically from the
  4522. # app scripts.
  4523. VARIANTS='full'
  4524. # If you want this to appear on the control panel About screen
  4525. SHOW_ON_ABOUT=1
  4526. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4527. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4528. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4529. MYAPPNAME_ONION_PORT=[port number]
  4530. MYAPPNAME_DB_PASSWORD=
  4531. # A directory where the data for this app exists
  4532. MYAPP_DATA_DIR=/var/lib/somedirectory
  4533. # List of configuration variables used by the app
  4534. myappname_variables=(ONION_ONLY
  4535. MY_USERNAME
  4536. SOME_IMPORTANT_CONFIG_VARIABLE
  4537. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4538. MY_FUNKY_AVATAR
  4539. MYAPPNAME_ONION_PORT
  4540. MYAPPNAME_DB_PASSWORD)
  4541. function change_password_myappname {
  4542. PASSWORD_USERNAME=&quot;$1&quot;
  4543. PASSWORD_NEW=&quot;$2&quot;
  4544. # Do something to change the password
  4545. }
  4546. function reconfigure_myappname {
  4547. echo -n ''
  4548. # Do something to delete existing keys/identity and
  4549. # generate new ones
  4550. }
  4551. function upgrade_myappname {
  4552. echo -n ''
  4553. # Do something to upgrade this app.
  4554. # If it's a debian package then it will be maintained by the
  4555. # operating system and you don't need anything here
  4556. }
  4557. function backup_local_myappname {
  4558. # If your app has a MariaDB/MySQL database
  4559. backup_database_to_usb myappname
  4560. # To backup a directory
  4561. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  4562. # 'full' includes your app in the full installation and you
  4563. # can also add other variants, separated by spaces. The
  4564. # available variants will be detected automatically from the
  4565. # app scripts.
  4566. VARIANTS='full'
  4567. # If you want this to appear on the control panel About screen
  4568. SHOW_ON_ABOUT=1
  4569. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4570. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4571. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4572. MYAPPNAME_ONION_PORT=[port number]
  4573. MYAPPNAME_DB_PASSWORD=
  4574. # A directory where the data for this app exists
  4575. MYAPP_DATA_DIR=/var/lib/somedirectory
  4576. # List of configuration variables used by the app
  4577. myappname_variables=(ONION_ONLY
  4578. MY_USERNAME
  4579. SOME_IMPORTANT_CONFIG_VARIABLE
  4580. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4581. MY_FUNKY_AVATAR
  4582. MYAPPNAME_ONION_PORT
  4583. MYAPPNAME_DB_PASSWORD)
  4584. function change_password_myappname {
  4585. PASSWORD_USERNAME=&quot;$1&quot;
  4586. PASSWORD_NEW=&quot;$2&quot;
  4587. # Do something to change the password
  4588. }
  4589. function reconfigure_myappname {
  4590. echo -n ''
  4591. # Do something to delete existing keys/identity and
  4592. # generate new ones
  4593. }
  4594. function upgrade_myappname {
  4595. echo -n ''
  4596. # Do something to upgrade this app.
  4597. # If it's a debian package then it will be maintained by the
  4598. # operating system and you don't need anything here
  4599. }
  4600. function backup_local_myappname {
  4601. # If your app has a MariaDB/MySQL database
  4602. backup_database_to_usb myappname
  4603. # To backup a directory
  4604. backup_directory_to_usb ">If your app has a MariaDB/MySQL database</a></span><a href="http://www.gnu.org/licenses/&gt;.
  4605. # 'full' includes your app in the full installation and you
  4606. # can also add other variants, separated by spaces. The
  4607. # available variants will be detected automatically from the
  4608. # app scripts.
  4609. VARIANTS='full'
  4610. # If you want this to appear on the control panel About screen
  4611. SHOW_ON_ABOUT=1
  4612. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4613. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4614. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4615. MYAPPNAME_ONION_PORT=[port number]
  4616. MYAPPNAME_DB_PASSWORD=
  4617. # A directory where the data for this app exists
  4618. MYAPP_DATA_DIR=/var/lib/somedirectory
  4619. # List of configuration variables used by the app
  4620. myappname_variables=(ONION_ONLY
  4621. MY_USERNAME
  4622. SOME_IMPORTANT_CONFIG_VARIABLE
  4623. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4624. MY_FUNKY_AVATAR
  4625. MYAPPNAME_ONION_PORT
  4626. MYAPPNAME_DB_PASSWORD)
  4627. function change_password_myappname {
  4628. PASSWORD_USERNAME=&quot;$1&quot;
  4629. PASSWORD_NEW=&quot;$2&quot;
  4630. # Do something to change the password
  4631. }
  4632. function reconfigure_myappname {
  4633. echo -n ''
  4634. # Do something to delete existing keys/identity and
  4635. # generate new ones
  4636. }
  4637. function upgrade_myappname {
  4638. echo -n ''
  4639. # Do something to upgrade this app.
  4640. # If it's a debian package then it will be maintained by the
  4641. # operating system and you don't need anything here
  4642. }
  4643. function backup_local_myappname {
  4644. # If your app has a MariaDB/MySQL database
  4645. backup_database_to_usb myappname
  4646. # To backup a directory
  4647. backup_directory_to_usb ">
  4648. backup_database_to_usb myappname
  4649. </a><span class="org-comment-delimiter"><a href="http://www.gnu.org/licenses/&gt;.
  4650. # 'full' includes your app in the full installation and you
  4651. # can also add other variants, separated by spaces. The
  4652. # available variants will be detected automatically from the
  4653. # app scripts.
  4654. VARIANTS='full'
  4655. # If you want this to appear on the control panel About screen
  4656. SHOW_ON_ABOUT=1
  4657. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4658. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4659. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4660. MYAPPNAME_ONION_PORT=[port number]
  4661. MYAPPNAME_DB_PASSWORD=
  4662. # A directory where the data for this app exists
  4663. MYAPP_DATA_DIR=/var/lib/somedirectory
  4664. # List of configuration variables used by the app
  4665. myappname_variables=(ONION_ONLY
  4666. MY_USERNAME
  4667. SOME_IMPORTANT_CONFIG_VARIABLE
  4668. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4669. MY_FUNKY_AVATAR
  4670. MYAPPNAME_ONION_PORT
  4671. MYAPPNAME_DB_PASSWORD)
  4672. function change_password_myappname {
  4673. PASSWORD_USERNAME=&quot;$1&quot;
  4674. PASSWORD_NEW=&quot;$2&quot;
  4675. # Do something to change the password
  4676. }
  4677. function reconfigure_myappname {
  4678. echo -n ''
  4679. # Do something to delete existing keys/identity and
  4680. # generate new ones
  4681. }
  4682. function upgrade_myappname {
  4683. echo -n ''
  4684. # Do something to upgrade this app.
  4685. # If it's a debian package then it will be maintained by the
  4686. # operating system and you don't need anything here
  4687. }
  4688. function backup_local_myappname {
  4689. # If your app has a MariaDB/MySQL database
  4690. backup_database_to_usb myappname
  4691. # To backup a directory
  4692. backup_directory_to_usb "># </a></span><span class="org-comment"><a href="http://www.gnu.org/licenses/&gt;.
  4693. # 'full' includes your app in the full installation and you
  4694. # can also add other variants, separated by spaces. The
  4695. # available variants will be detected automatically from the
  4696. # app scripts.
  4697. VARIANTS='full'
  4698. # If you want this to appear on the control panel About screen
  4699. SHOW_ON_ABOUT=1
  4700. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4701. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4702. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4703. MYAPPNAME_ONION_PORT=[port number]
  4704. MYAPPNAME_DB_PASSWORD=
  4705. # A directory where the data for this app exists
  4706. MYAPP_DATA_DIR=/var/lib/somedirectory
  4707. # List of configuration variables used by the app
  4708. myappname_variables=(ONION_ONLY
  4709. MY_USERNAME
  4710. SOME_IMPORTANT_CONFIG_VARIABLE
  4711. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4712. MY_FUNKY_AVATAR
  4713. MYAPPNAME_ONION_PORT
  4714. MYAPPNAME_DB_PASSWORD)
  4715. function change_password_myappname {
  4716. PASSWORD_USERNAME=&quot;$1&quot;
  4717. PASSWORD_NEW=&quot;$2&quot;
  4718. # Do something to change the password
  4719. }
  4720. function reconfigure_myappname {
  4721. echo -n ''
  4722. # Do something to delete existing keys/identity and
  4723. # generate new ones
  4724. }
  4725. function upgrade_myappname {
  4726. echo -n ''
  4727. # Do something to upgrade this app.
  4728. # If it's a debian package then it will be maintained by the
  4729. # operating system and you don't need anything here
  4730. }
  4731. function backup_local_myappname {
  4732. # If your app has a MariaDB/MySQL database
  4733. backup_database_to_usb myappname
  4734. # To backup a directory
  4735. backup_directory_to_usb ">To backup a directory</a></span><a href="http://www.gnu.org/licenses/&gt;.
  4736. # 'full' includes your app in the full installation and you
  4737. # can also add other variants, separated by spaces. The
  4738. # available variants will be detected automatically from the
  4739. # app scripts.
  4740. VARIANTS='full'
  4741. # If you want this to appear on the control panel About screen
  4742. SHOW_ON_ABOUT=1
  4743. SOME_IMPORTANT_CONFIG_VARIABLE='some important value'
  4744. ANOTHER_IMPORTANT_CONFIG_VARIABLE='foo'
  4745. MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
  4746. MYAPPNAME_ONION_PORT=[port number]
  4747. MYAPPNAME_DB_PASSWORD=
  4748. # A directory where the data for this app exists
  4749. MYAPP_DATA_DIR=/var/lib/somedirectory
  4750. # List of configuration variables used by the app
  4751. myappname_variables=(ONION_ONLY
  4752. MY_USERNAME
  4753. SOME_IMPORTANT_CONFIG_VARIABLE
  4754. ANOTHER_IMPORTANT_CONFIG_VARIABLE
  4755. MY_FUNKY_AVATAR
  4756. MYAPPNAME_ONION_PORT
  4757. MYAPPNAME_DB_PASSWORD)
  4758. function change_password_myappname {
  4759. PASSWORD_USERNAME=&quot;$1&quot;
  4760. PASSWORD_NEW=&quot;$2&quot;
  4761. # Do something to change the password
  4762. }
  4763. function reconfigure_myappname {
  4764. echo -n ''
  4765. # Do something to delete existing keys/identity and
  4766. # generate new ones
  4767. }
  4768. function upgrade_myappname {
  4769. echo -n ''
  4770. # Do something to upgrade this app.
  4771. # If it's a debian package then it will be maintained by the
  4772. # operating system and you don't need anything here
  4773. }
  4774. function backup_local_myappname {
  4775. # If your app has a MariaDB/MySQL database
  4776. backup_database_to_usb myappname
  4777. # To backup a directory
  4778. backup_directory_to_usb ">
  4779. backup_directory_to_usb $</a><span class="org-variable-name">MYAPP_DATA_DIR</span> myappname
  4780. <span class="org-comment-delimiter"># </span><span class="org-comment">if you need to backup data within individual user</span>
  4781. <span class="org-comment-delimiter"># </span><span class="org-comment">home directories</span>
  4782. <span class="org-keyword">for</span> d<span class="org-keyword"> in</span> /home/*/ ; <span class="org-keyword">do</span>
  4783. <span class="org-variable-name">USERNAME</span>=$(<span class="org-sh-quoted-exec">echo</span> <span class="org-string">"$d"</span> | awk -F <span class="org-string">'/'</span> <span class="org-string">'{print $3}'</span>)
  4784. <span class="org-keyword">if</span> [[ $(<span class="org-sh-quoted-exec">is_valid_user</span> <span class="org-string">"$USERNAME"</span>) == <span class="org-string">"1"</span> ]]; <span class="org-keyword">then</span>
  4785. <span class="org-builtin">echo</span> $<span class="org-string">"Backing up myappname config for $USERNAME"</span>
  4786. <span class="org-keyword">if</span> [ -d /home/$<span class="org-variable-name">USERNAME</span>/.config/myappname ]; <span class="org-keyword">then</span>
  4787. backup_directory_to_usb <span class="org-sh-escaped-newline">\</span>
  4788. /home/$<span class="org-variable-name">USERNAME</span>/.config/myappname <span class="org-sh-escaped-newline">\</span>
  4789. myappname_users/$<span class="org-variable-name">USERNAME</span>
  4790. <span class="org-keyword">fi</span>
  4791. <span class="org-keyword">fi</span>
  4792. <span class="org-keyword">done</span>
  4793. }
  4794. <span class="org-keyword">function</span> <span class="org-function-name">restore_local_myappname</span> {
  4795. <span class="org-variable-name">temp_restore_dir</span>=/root/tempmyappname
  4796. <span class="org-comment-delimiter"># </span><span class="org-comment">If your app has a MariaDB/MySQL database</span>
  4797. restore_database myappname
  4798. <span class="org-comment-delimiter"># </span><span class="org-comment">Restore some data from a directory</span>
  4799. <span class="org-comment-delimiter"># </span><span class="org-comment">Note that we don't restore directly but to a temporary</span>
  4800. <span class="org-comment-delimiter"># </span><span class="org-comment">directory and then copy the files. This ensures that if</span>
  4801. <span class="org-comment-delimiter"># </span><span class="org-comment">there is a restore failure you don't end up with</span>
  4802. <span class="org-comment-delimiter"># </span><span class="org-comment">half-copied or corrupted files</span>
  4803. restore_directory_from_usb $<span class="org-variable-name">MYAPP_DATA_DIR</span> myappname
  4804. cp -r $<span class="org-variable-name">temp_restore_dir</span>/$<span class="org-variable-name">MYAPP_DATA_DIR</span> $<span class="org-variable-name">MYAPP_DATA_DIR</span>
  4805. rm -rf $<span class="org-variable-name">temp_restore_dir</span>
  4806. <span class="org-comment-delimiter"># </span><span class="org-comment">If you need to restore a configuration directory for each user</span>
  4807. <span class="org-keyword">if</span> [ -d $<span class="org-variable-name">USB_MOUNT</span>/backup/myappname_users ]; <span class="org-keyword">then</span>
  4808. <span class="org-keyword">for</span> d<span class="org-keyword"> in</span> $<span class="org-variable-name">USB_MOUNT</span>/backup/myappname_users/*/ ; <span class="org-keyword">do</span>
  4809. <span class="org-variable-name">USERNAME</span>=$(<span class="org-sh-quoted-exec">echo</span> <span class="org-string">"$d"</span> | awk -F <span class="org-string">'/'</span> <span class="org-string">'{print $6}'</span>)
  4810. <span class="org-keyword">if</span> [[ $(<span class="org-sh-quoted-exec">is_valid_user</span> <span class="org-string">"$USERNAME"</span>) == <span class="org-string">"1"</span> ]]; <span class="org-keyword">then</span>
  4811. <span class="org-keyword">if</span> [ <span class="org-negation-char">!</span> -d /home/$<span class="org-variable-name">USERNAME</span> ]; <span class="org-keyword">then</span>
  4812. ${<span class="org-variable-name">PROJECT_NAME</span>}-adduser $<span class="org-variable-name">USERNAME</span>
  4813. <span class="org-keyword">fi</span>
  4814. <span class="org-builtin">echo</span> $<span class="org-string">"Restoring Vim config for $USERNAME"</span>
  4815. function_check restore_directory_from_usb
  4816. restore_directory_from_usb $<span class="org-variable-name">temp_restore_dir</span> <span class="org-sh-escaped-newline">\</span>
  4817. myappname_users/$<span class="org-variable-name">USERNAME</span>
  4818. cp -r $<span class="org-variable-name">temp_restore_dir</span>/home/$<span class="org-variable-name">USERNAME</span>/.config <span class="org-sh-escaped-newline">\</span>
  4819. /home/$<span class="org-variable-name">USERNAME</span>/
  4820. <span class="org-keyword">if</span> [ <span class="org-negation-char">!</span> <span class="org-string">"$?"</span> = <span class="org-string">"0"</span> ]; <span class="org-keyword">then</span>
  4821. rm -rf $<span class="org-variable-name">temp_restore_dir</span>
  4822. set_user_permissions
  4823. backup_unmount_drive
  4824. <span class="org-keyword">exit</span> 664
  4825. <span class="org-keyword">fi</span>
  4826. rm -rf $<span class="org-variable-name">temp_restore_dir</span>
  4827. <span class="org-keyword">fi</span>
  4828. <span class="org-keyword">done</span>
  4829. <span class="org-keyword">fi</span>
  4830. }
  4831. <span class="org-keyword">function</span> <span class="org-function-name">backup_remote_myappname</span> {
  4832. <span class="org-comment-delimiter"># </span><span class="org-comment">this should be the same as backup_local_myappname,</span>
  4833. <span class="org-comment-delimiter"># </span><span class="org-comment">but call the backup functions backup_directory_to_friend</span>
  4834. <span class="org-comment-delimiter"># </span><span class="org-comment">and backup_database_to_friend</span>
  4835. }
  4836. <span class="org-keyword">function</span> <span class="org-function-name">restore_remote_vim</span> {
  4837. <span class="org-comment-delimiter"># </span><span class="org-comment">this should be the same as restore_local_myappname,</span>
  4838. <span class="org-comment-delimiter"># </span><span class="org-comment">but call the restore function restore_directory_from_friend</span>
  4839. <span class="org-comment-delimiter"># </span><span class="org-comment">and restore_database_from_friend</span>
  4840. }
  4841. <span class="org-keyword">function</span> <span class="org-function-name">remove_myappname</span> {
  4842. <span class="org-comment-delimiter"># </span><span class="org-comment">if it's a debian package then:</span>
  4843. apt-get -y remove --purge [my-app-package-name]
  4844. <span class="org-comment-delimiter"># </span><span class="org-comment">If your app has a MariaDB/MySQL database</span>
  4845. drop_database myappname
  4846. <span class="org-comment-delimiter"># </span><span class="org-comment">If your app uses an onion address</span>
  4847. remove_onion_service myappname ${<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>}
  4848. }
  4849. <span class="org-keyword">function</span> <span class="org-function-name">install_myappname</span> {
  4850. <span class="org-comment-delimiter"># </span><span class="org-comment">if it's a debian package then:</span>
  4851. apt-get -y install [my-app-package-name]
  4852. <span class="org-comment-delimiter"># </span><span class="org-comment">If you need to create a MariaDB/MySQL database for the app</span>
  4853. <span class="org-variable-name">MYAPPNAME_DB_PASSWORD</span>=<span class="org-string">"$(</span><span class="org-sh-quoted-exec">create_password</span><span class="org-string"> 20)"</span>
  4854. create_database myappname <span class="org-string">"$MYAPPNAME_DB_PASSWORD"</span> $<span class="org-variable-name">MY_USERNAME</span>
  4855. <span class="org-comment-delimiter"># </span><span class="org-comment">If you need to create an onion address for the app</span>
  4856. <span class="org-variable-name">MYAPPNAME_ONION_HOSTNAME</span>=$(<span class="org-sh-quoted-exec">add_onion_service</span> myappname <span class="org-sh-escaped-newline">\</span>
  4857. 80 ${<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>})
  4858. <span class="org-comment-delimiter"># </span><span class="org-comment">Do any other configuration</span>
  4859. <span class="org-comment-delimiter"># </span><span class="org-comment">Here you might use $ONION_ONLY or</span>
  4860. <span class="org-comment-delimiter"># </span><span class="org-comment">$SOME_IMPORTANT_CONFIG_VARIABLE</span>
  4861. <span class="org-comment-delimiter"># </span><span class="org-comment">Mark the app as having installed successfully</span>
  4862. <span class="org-comment-delimiter"># </span><span class="org-comment">If this variable isn't set then it will be assumed that</span>
  4863. <span class="org-comment-delimiter"># </span><span class="org-comment">the install has failed</span>
  4864. <span class="org-variable-name">APP_INSTALLED</span>=1
  4865. }
  4866. <span class="org-keyword">function</span> <span class="org-function-name">install_interactive_myappname</span> {
  4867. <span class="org-comment-delimiter"># </span><span class="org-comment">Interactively obtain some values using dialog, such as</span>
  4868. <span class="org-comment-delimiter"># </span><span class="org-comment">domain names. An avatar changing example is:</span>
  4869. <span class="org-variable-name">data</span>=$(<span class="org-sh-quoted-exec">tempfile</span> 2&gt;/dev/null)
  4870. <span class="org-keyword">trap</span> <span class="org-string">"rm -f $data"</span> 0 1 2 5 15
  4871. dialog --title $<span class="org-string">"Change your avatar"</span> <span class="org-sh-escaped-newline">\</span>
  4872. --backtitle $<span class="org-string">"Freedombone Control Panel"</span> <span class="org-sh-escaped-newline">\</span>
  4873. --inputbox $<span class="org-string">"Enter a URL for an image. It should be "</span> <span class="org-sh-escaped-newline">\</span>
  4874. $<span class="org-string">"approximately a square image."</span> 8 75 2&gt;$<span class="org-variable-name">data</span>
  4875. <span class="org-variable-name">sel</span>=$<span class="org-variable-name">?</span>
  4876. <span class="org-keyword">case</span> $<span class="org-variable-name">sel</span><span class="org-keyword"> in</span>
  4877. 0)
  4878. <span class="org-variable-name">MY_FUNKY_AVATAR</span>=$(&lt;$<span class="org-variable-name">data</span>)
  4879. <span class="org-keyword">if</span> [ ${#<span class="org-variable-name">MY_FUNKY_AVATAR</span>} -gt 3 ]; <span class="org-keyword">then</span>
  4880. clear
  4881. <span class="org-comment-delimiter"># </span><span class="org-comment">do whatever is needed to change the avatar</span>
  4882. <span class="org-comment-delimiter"># </span><span class="org-comment">in your app</span>
  4883. dialog --title $<span class="org-string">"Change your avatar"</span> <span class="org-sh-escaped-newline">\</span>
  4884. --msgbox $<span class="org-string">"Your avatar has been changed"</span> 6 40
  4885. <span class="org-keyword">fi</span>
  4886. ;;
  4887. <span class="org-keyword">esac</span>
  4888. <span class="org-comment-delimiter"># </span><span class="org-comment">Then do the main install</span>
  4889. install_myappname
  4890. }
  4891. <span class="org-comment-delimiter"># </span><span class="org-comment">NOTE: deliberately no exit 0</span>
  4892. </pre>
  4893. </div>
  4894. <p>
  4895. To test your app log into your system, select <b>Exit to command line</b> then gain root powers with:
  4896. </p>
  4897. <div class="org-src-container">
  4898. <pre class="src src-bash">sudo su
  4899. </pre>
  4900. </div>
  4901. <p>
  4902. Copy your app script to <b>/usr/share/freedombone/apps/freedombone-app-myappname</b>.
  4903. </p>
  4904. <p>
  4905. And run the admin control panel:
  4906. </p>
  4907. <div class="org-src-container">
  4908. <pre class="src src-bash">control
  4909. </pre>
  4910. </div>
  4911. <p>
  4912. Select <b>Add/Remove Apps</b> and if all is well then you should see your app listed as installable. Test that installing and removing it works as expected.
  4913. </p>
  4914. <p>
  4915. Submit your working app to <b><a href="https://github.com/bashrc/freedombone/issues">https://github.com/bashrc/freedombone/issues</a></b>
  4916. </p>
  4917. </div>
  4918. </div>
  4919. <div id="outline-container-org6096432" class="outline-2">
  4920. <h2 id="org6096432">Customising mesh images</h2>
  4921. <div class="outline-text-2" id="text-org6096432">
  4922. <p>
  4923. If you want to make your own specially branded version of the mesh images, such as for a particular event, then to change the default desktop backgrounds edit the images within <b>img/backgrounds</b> and to change the available avatars and desktop icons edit the images within <b>img/avatars</b>. Re-create disk images using the instructions shown previously.
  4924. </p>
  4925. <p>
  4926. If you need particular <i>dconf</i> commands to alter desktop appearance or behavior then see the function <i>mesh_client_startup_applications</i> within <b>src/freedombone-image-customise</b>.
  4927. </p>
  4928. </div>
  4929. </div>
  4930. </div>
  4931. <div id="postamble" class="status">
  4932. <style type="text/css">
  4933. .back-to-top {
  4934. position: fixed;
  4935. bottom: 2em;
  4936. right: 0px;
  4937. text-decoration: none;
  4938. color: #000000;
  4939. background-color: rgba(235, 235, 235, 0.80);
  4940. font-size: 12px;
  4941. padding: 1em;
  4942. display: none;
  4943. }
  4944. .back-to-top:hover {
  4945. background-color: rgba(135, 135, 135, 0.50);
  4946. }
  4947. </style>
  4948. <div class="back-to-top">
  4949. <a href="#top">Back to top</a> | <a href="mailto:bob@robotics.uk.to">E-mail me</a>
  4950. </div>
  4951. </div>
  4952. </body>
  4953. </html>