made deboco cope properly with relative file paths

This commit is contained in:
Guillaume Raffy 2023-12-13 11:27:35 +01:00
parent 8dbcb480fc
commit 6d53ab97e4
1 changed files with 6 additions and 0 deletions

View File

@ -215,6 +215,8 @@ controller__check_integrity()
deboco__init()
{
local debops_controller_path="$1"
debops_controller_path=$(realpath $debops_controller_path)
log 'info' "creating debobs controller in $debops_controller_path"
if [ "$debops_controller_path" = '' ]
then
@ -314,6 +316,7 @@ deboco__init()
deboco__update()
{
local debops_controller_path="$1"
debops_controller_path=$(realpath $debops_controller_path)
log 'info' "updating debobs controller in $debops_controller_path"
controller__check_integrity "$debops_controller_path"
@ -357,6 +360,7 @@ deboco__configure_machine()
{
local debops_controller_path="$1"
local target_host_fqdn="$2" # the machine on which we want to install debops bootstrap, eg alambix-108.ipr.univ-rennes.fr
debops_controller_path=$(realpath $debops_controller_path)
log 'info' "configuring $target_host_fqdn using debobs controller $debops_controller_path"
local error_code=$RETURNCODE_SUCCESS
@ -383,6 +387,7 @@ deboco__init_machine()
{
local debops_controller_path="$1"
local target_host_fqdn="$2" # the machine on which we want to install debops bootstrap, eg alambix-108.ipr.univ-rennes.fr
debops_controller_path=$(realpath $debops_controller_path)
log 'info' "installing debops bootstrap on $target_host_fqdn using debobs controller $debops_controller_path"
@ -425,6 +430,7 @@ deboco__update_machine()
{
local debops_controller_path="$1"
local target_host_fqdn="$2" # eg alambix-108.ipr.univ-rennes.fr
debops_controller_path=$(realpath $debops_controller_path)
log 'info' "updating $target_host_fqdn using debobs controller $debops_controller_path"