fai-do-scripts(1)

πŸ“¦
version 6.6ubuntu1 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– fai-do-scripts β€” the manual page, but make it cute πŸ’–

okay so bestie, welcome to fai-do-scripts(1) β€” section 1 of the manual, the one that lives in FAI 6 land. this is the page that tells you how FAI calls your config scripts. let's get into it, no cap. ✨


πŸŽ€ NAME πŸŽ€

fai-do-scripts β€” call configuration scripts

like, that's the whole job. it calls scripts. it does what it says on the tin, periodt.


🌸 SYNOPSIS 🌸

fai-do-scripts [OPTION] DIRECTORY

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so first thing, bestie β€” this command is only called internally by FAI and not directly by the user. so if you're out here typing it yourself, that's very main character of you, but it's not the intended vibe. πŸ™ˆ

fai-do-scripts executes all scripts in DIRECTORY which are also a defined class. and here's the twist β€” if the name of the class is a directory, then all scripts that match <CLASSNAME>/^[0-9][0-9].* (so like, scripts starting with two digits) in this directory get executed. iykyk. πŸ‘‘

and yes, you can absolutely have several scripts of different types (shell, python, ruby, cfengine, ...) be executed for one class. it's giving variety. it's giving range. πŸ’…


✨ OPTIONS ✨

  • -h β€” show help, version and a summary of all the options. the little "hey what does this do" button. 🫢
  • -L DIR β€” write log files to DIR.
  • -n β€” show the type of scripts that would be executed, but do not execute them. a little sneak peek, a little window shopping, no commitment. πŸ›οΈ

🌈 EXAMPLES 🌈

in FAI, fai-do-scripts is used like this:

# fai-do-scripts /fai/scripts

look at her go. ⭐


πŸ’œ NOTES πŸ’œ

the output of the scripts is also written to $LOGDIR/scripts.log. and the file $LOGDIR/status.log lists all scripts executed and whether they finished with success or failure. so you always know what happened, bestie β€” receipts kept, no mystery. 🧾

okay important: if the variable $FAI_USE_OLD_SCRIPT_LOGS is set to 1, the old style log file names are used (different name for every type of script). heads up though β€” this may be removed in the future. so don't get too attached. πŸ’€

πŸ“ SEE ALSO πŸ“

this program is part of FAI (Fully Automatic Installation). the FAI homepage is http:///fai-project.org. go say hi. 🌸


πŸ‘‘ AUTHOR πŸ‘‘

written by Thomas Lange <lange@cs.uni-koeln.de>


and that's the whole page, bestie!! this iconic little manual is from FAI 6, dated October 2022, and it's filed under fai-do-scripts(1). slay, ate, no crumbs. πŸ’–βœ¨πŸŽ€