/usr/lib/fai/get-config-dir-scp is in fai-client 5.3.6ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #!/bin/bash
#*********************************************************************
#
# get-config-dir-http -- get a tarball of the config dir
#
# This script is part of FAI (Fully Automatic Installation)
# Copyright (C) 2000-2015 Thomas Lange, lange@informatik.uni-koeln.de
# Universitaet zu Koeln
#
#*********************************************************************
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#*********************************************************************
### BEGIN SUBROUTINE INFO
# Provides-Var:
# Requires-Var: $FAI_CONFIG_SRC $FAI
# Suggests-Var:
# Short-Description: get config space via http
### END SUBROUTINE INFO
fdir=/var/lib/fai
mkramdisk $fdir
cd $fdir
# determine basename of tar file to download (later used as class name)
file=${FAI_CONFIG_SRC##*/}
base=${file%%.*}
# now download tarball of config space
echo -n "Getting configuration space tarball from $FAI_CONFIG_SRC ..."
HOME=/root curl -f -O --retry 3 $FAI_CONFIG_SRC
ret=$?
if [ $? -eq 0 ]; then
echo "done"
else
echo "curl error $ret while downloading $FAI_CONFIG_SRC."
task_error 882 $ret
fi
# extraxt the downloaded file using ftar. Therefore define a class
# with the basename of the file
echo "Extracting config space from $file"
ftar -c $base -t $FAI -s $fdir .
|