pxe: simplify with cp
This commit is contained in:
parent
4bdc55b46d
commit
c2848c265a
|
@ -32,7 +32,7 @@ END
|
||||||
|
|
||||||
if [ ! -f "${nfs_path}/settings.ini" ]; then
|
if [ ! -f "${nfs_path}/settings.ini" ]; then
|
||||||
if [ -f "settings.ini" ]; then
|
if [ -f "settings.ini" ]; then
|
||||||
ln -sfv "$(pwd)/settings.ini"" ${nfs_path}/settings.ini"
|
cp settings.ini "${nfs_path}/settings.ini"
|
||||||
else
|
else
|
||||||
echo "ERROR: ../settings.ini does not exist yet, cannot read config from there. You can take inspiration with file ../settings.ini.example"
|
echo "ERROR: ../settings.ini does not exist yet, cannot read config from there. You can take inspiration with file ../settings.ini.example"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue