made deboco cope properly with relative file paths
This commit is contained in:
parent
8dbcb480fc
commit
6d53ab97e4
|
@ -215,6 +215,8 @@ controller__check_integrity()
|
||||||
deboco__init()
|
deboco__init()
|
||||||
{
|
{
|
||||||
local debops_controller_path="$1"
|
local debops_controller_path="$1"
|
||||||
|
|
||||||
|
debops_controller_path=$(realpath $debops_controller_path)
|
||||||
log 'info' "creating debobs controller in $debops_controller_path"
|
log 'info' "creating debobs controller in $debops_controller_path"
|
||||||
if [ "$debops_controller_path" = '' ]
|
if [ "$debops_controller_path" = '' ]
|
||||||
then
|
then
|
||||||
|
@ -314,6 +316,7 @@ deboco__init()
|
||||||
deboco__update()
|
deboco__update()
|
||||||
{
|
{
|
||||||
local debops_controller_path="$1"
|
local debops_controller_path="$1"
|
||||||
|
debops_controller_path=$(realpath $debops_controller_path)
|
||||||
log 'info' "updating debobs controller in $debops_controller_path"
|
log 'info' "updating debobs controller in $debops_controller_path"
|
||||||
|
|
||||||
controller__check_integrity "$debops_controller_path"
|
controller__check_integrity "$debops_controller_path"
|
||||||
|
@ -357,6 +360,7 @@ deboco__configure_machine()
|
||||||
{
|
{
|
||||||
local debops_controller_path="$1"
|
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
|
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"
|
log 'info' "configuring $target_host_fqdn using debobs controller $debops_controller_path"
|
||||||
|
|
||||||
local error_code=$RETURNCODE_SUCCESS
|
local error_code=$RETURNCODE_SUCCESS
|
||||||
|
@ -383,6 +387,7 @@ deboco__init_machine()
|
||||||
{
|
{
|
||||||
local debops_controller_path="$1"
|
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
|
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"
|
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 debops_controller_path="$1"
|
||||||
local target_host_fqdn="$2" # eg alambix-108.ipr.univ-rennes.fr
|
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"
|
log 'info' "updating $target_host_fqdn using debobs controller $debops_controller_path"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue