Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rear lftp+cfg2html #432

Closed
tyl0re opened this issue Jun 25, 2014 · 0 comments
Closed

Rear lftp+cfg2html #432

tyl0re opened this issue Jun 25, 2014 · 0 comments

Comments

@tyl0re
Copy link
Contributor

tyl0re commented Jun 25, 2014

Version 1.16
Server: SLES11 Sp3
Presinstalled: cfg2html

In /usr/share/rear/output/default/95_copy_result_files.sh
Line:38
lftp -c "open $OUTPUT_URL; mput ${RESULT_FILES[@]}"

Seems to execute

lftp -c 'open http://Server/call; mput 1.html' 1.iso
that results in Command not found

Somehow bash mask wrong ' when giving him an array

Same Error Can be produced with an shell script:

!/bin/bash -x

export OUTPUT_URL="http://SERVER1/upload/"
RESULT_FILES=( "/var/lib/rear/recovery/cfg2html/SERVER1.html" "/var/lib/rear/output/rear-SERVER2.iso" )

lftp -c "open $OUTPUT_URL; mput "${RESULT_FILES[@]}""

Solution:
X=echo "${RESULT_FILES[@]}"
lftp -c "open $OUTPUT_URL; mput $X"

When de installing cfg2html, it works since the array has only one entry

@tyl0re tyl0re closed this as completed Jun 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant