FAI scripts and automatic backups by editors

Arto Teras arto.teras at hip.fi
Mon Jun 3 14:30:45 CEST 2002


Hi, 

I started using FAI 2.3.4 and the new feature which allows creating
directories under fai/config/scripts. If the directory is called MY_CLASS
and the client belongs to class MY_CLASS, all the scripts in the directory
are executed.

The automatic creation of backup files in some editors (in this case emacs)
easily causes problems here. For instance I edited the script S40 under
directory NETWORK and emacs copied the old one to name S40~. FAI executed
both of them, the "backup" one thus overriding the settings of the "correct"
S40.

I suggest a small change that the files ending in tilde (and other common
"backup"-namings if there are others?) wouldn't be executed by default.

AJT

-- 
Arto Teräs --- See http://www.iki.fi/ajt/ for contact info



More information about the linux-fai mailing list