fix double quotes around lxc exec

This commit is contained in:
Kay0u 2021-03-22 14:27:39 +01:00
parent f09c0a9f8e
commit 529fb591de
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
3 changed files with 4 additions and 4 deletions

View file

@ -91,7 +91,7 @@ LXC_EXEC () {
start_timer
# Execute the command given in argument in the container and log its results.
lxc exec $LXC_NAME --env PACKAGE_CHECK_EXEC=1 -t -- $cmd | tee -a "$complete_log" $current_test_log
lxc exec $LXC_NAME --env PACKAGE_CHECK_EXEC=1 -t -- /bin/bash -c "$cmd" | tee -a "$complete_log" $current_test_log
# Store the return code of the command
local returncode=${PIPESTATUS[0]}

View file

@ -80,8 +80,8 @@ _INSTALL_APP () {
done
# Install the application in a LXC container
log_info "Running: yunohost app install --force /app_folder -a $install_args"
_RUN_YUNOHOST_CMD "app install --force /app_folder -a $install_args"
log_info "Running: yunohost app install --force /app_folder -a \"$install_args\""
_RUN_YUNOHOST_CMD "app install --force /app_folder -a \"$install_args\""
local ret=$?
[ $ret -eq 0 ] && log_debug "Installation successful." || log_error "Installation failed."

View file

@ -78,7 +78,7 @@ parse_check_process() {
# Looking like domain=foo.com&path=/bar&password=stuff
# "Standard" arguments like domain/path will later be overwritten
# during tests
local install_args=$( extract_check_process_section "^; Manifest" "^; " $test_serie_rawconf | awk '{print $1}' | tr -d '"' | tr '\n' '&')
local install_args=$( extract_check_process_section "^; Manifest" "^; " $test_serie_rawconf | tr '\n' '&')
local preinstall_template=$(extract_check_process_section "^; pre-install" "^; " $test_serie_rawconf)
local action_infos=$( extract_check_process_section "^; Actions" "^; " $test_serie_rawconf)
local configpanel_infos=$( extract_check_process_section "^; Config_panel" "^; " $test_serie_rawconf)