Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
module:install-xtrn [2021/02/13 11:47] – created mlong | module:install-xtrn [2021/11/18 14:28] (current) – [Command Line Options] Use proper table markup digital man | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== External |
- | A utility used to aid in installing programs to the External Programs section. | + | |
- | This script parses a .ini file (default filename is install-xtrn.ini) and installs the external programs defined within into the Synchronet BBS | ||
- | configuration file: ctrl/ | ||
- | If the door is included with Synchronet, or Synchronet already has a configuration for it (in xtrn/ | + | This script parses a '' |
+ | |||
+ | This script can by invoked in a more user-friendly automated fashion by running [[person: | ||
+ | |||
+ | If the door is included with Synchronet, or Synchronet already has a configuration for it (in '' | ||
===== Running the Script ==== | ===== Running the Script ==== | ||
Line 24: | Line 25: | ||
^ Command ^ Description ^ | ^ Command ^ Description ^ | ||
- | ^ -auto ^ Don't prompt for a list of doors to install | + | | -auto | Don't prompt for a list of doors to install |
- | ^ -debug | + | | -debug |
- | ^ -overwrite | + | | -overwrite |
===== Third Party External Programs (Doors) ===== | ===== Third Party External Programs (Doors) ===== | ||
Line 41: | Line 42: | ||
- Perform any required tasks according to the sysop documentation, | - Perform any required tasks according to the sysop documentation, | ||
- Apply any registration codes you have for the program | - Apply any registration codes you have for the program | ||
+ | |||
+ | ===== install_xtrn.ini ===== | ||
+ | |||
+ | This script is intended for use by sysops using JSexec, for example: | ||
+ | $ jsexec install-xtrn ../ | ||
+ | |||
+ | This script can aso be invoked using the ;EXEC sysop command while logged | ||
+ | into the terminal server, for example: | ||
+ | ;exec ? | ||
+ | |||
+ | | ||
+ | |||
+ | The .ini root section keys supported: | ||
+ | |||
+ | Name = Name of the program being installed (79 chars or less)\\ | ||
+ | Desc = Description of the program being installed (79 chars or less)\\ | ||
+ | | ||
+ | Cats = Comma-separated list of applicable categories (e.g. " | ||
+ | Subs = Comma-separated list of applicable sub-categories (e.g. " | ||
+ | Inst = Installer .ini file source/ | ||
+ | |||
+ | The .ini sections and keys supported (zero or more of each may be included): | ||
+ | |||
+ | | ||
+ | startup_dir = directory to make current before execution | ||
+ | |||
+ | | ||
+ | cmd = evaluate this string rather than the js-expression | ||
+ | |||
+ | | ||
+ | | ||
+ | cats = additional target installation categories (sections) | ||
+ | cmd = command-line to execute (63 chars max) | ||
+ | clean_cmd = clean-up command-line, | ||
+ | settings = bit-flags (see XTRN_* in sbbsdefs.js) | ||
+ | ars = access requirements string (40 chars max) | ||
+ | execution_ars = execution requirements string (40 chars max) | ||
+ | type = drop-file type (see XTRN_* in sbbsdefs.js) | ||
+ | event = event-type (see EVENT_* in sbbsdefs.j) | ||
+ | cost = cost to run, in credits | ||
+ | startup_dir = directory to make current before execution | ||
+ | textra = extra time (minutes) to allow to run this program | ||
+ | max_time = maximum time (minutes) allowed to run this program | ||
+ | |||
+ | | ||
+ | cmd = command-line to execute (63 chars max) | ||
+ | days = bit-field representing days of the week to execute | ||
+ | time = time of day to run this event | ||
+ | node_num = node number to run this event | ||
+ | settings = bit-flags (see XTRN_* in sbbsdefs.js) | ||
+ | startup_dir = directory to make current before execution | ||
+ | freq = frequency of execution | ||
+ | mdays = days of month (if non-zero) for execution | ||
+ | months = bit-field representing which months to execute | ||
+ | |||
+ | | ||
+ | name = editor name or description (40 chars max) | ||
+ | cmd = command-line to execute (63 chars max) | ||
+ | type = drop-file type (see XTRN_* in sbbsdefs.js) | ||
+ | settings = bit-flags (see XTRN_* in sbbsdefs.js) | ||
+ | ars = access requirements string (40 chars max) | ||
+ | |||
+ | | ||
+ | see ctrl/ | ||
+ | |||
+ | | ||
+ | startup_dir = directory to make current before execution | ||
+ | |||
+ | | ||
+ | cmd = evaluate this string rather than the js-expression | ||
+ | |||
+ | | ||
+ | keys = comma-separated list of keys to add/update in .ini | ||
+ | values | ||
+ | Note: string values must be enclosed in quotes! | ||
+ | |||
+ | | ||
+ | only used by this script (i.e. not written to any configuration files): | ||
+ | note = note to sysop displayed before installation | ||
+ | fail = note to sysop displayed upon failure | ||
+ | prompt | ||
+ | required = if true, this item must be successful to continue | ||
+ | last = if true, this item will be the last of its type | ||
+ | done = if true, no more installer items will be processed | ||
+ | |||
+ | | ||
+ | |||
+ | - The startup_dir will default to the location of the .ini file if this | ||
+ | key is not defined within the .ini file. | ||
+ | |||
+ | - The only required values are the < | ||
+ | cmd; all other keys will have functional default values if not defined in | ||
+ | the .ini file. | ||
+ | |||
+ | ===== Example install-xtrn.ini ===== | ||
+ | | ||
+ | Name: AlleyCat! BBS Game Server Games | ||
+ | Desc: Available Programs for use with acgs rgate.js connector | ||
+ | By: | ||
+ | Cats: Games | ||
+ | Subs: GAMES, SBBS DEMOS | ||
+ | Inst: 2021/01/02 | ||
+ | | ||
+ | [prog: | ||
+ | name =Synchronet | ||
+ | startup_dir = | ||
+ | cmd=? | ||
+ | execution_ars | ||
+ | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
+ | type = | ||
+ | | ||
+ | [prog: | ||
+ | name =Synchronet | ||
+ | startup_dir = | ||
+ | cmd=? | ||
+ | execution_ars | ||
+ | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
+ | type = | ||
+ | | ||
+ | [prog: | ||
+ | name =Synchronet | ||
+ | startup_dir = | ||
+ | cmd=? | ||
+ | execution_ars | ||
+ | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
+ | type = | ||
+ | | ||
+ | [prog: | ||
+ | name = TW2002 Gergovia | ||
+ | cmd = ?rgate.js tw2g2 | ||
+ | execution_ars | ||
+ | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
+ | type = XTRN_GAP | ||
+ | |||
+ | [prog: | ||
+ | name = TW2002 Hoboistica | ||
+ | cmd = ?rgate.js tw2g3 | ||
+ | execution_ars | ||
+ | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
+ | type = XTRN_GAP | ||
+ | |||
+ | |||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: |