sync host
This commit is contained in:
parent
b06123cc04
commit
4c7ebd5d27
@ -44,8 +44,7 @@ function sync_host()
|
||||
{
|
||||
CMD="onehost"
|
||||
OPT="sync -f --rsync"
|
||||
AUTH=$(get_one_auth)
|
||||
res=$(su - oneadmin -c "${CMD} ${OPT} --user ${AUTH%:*} --password ${AUTH#*:}")
|
||||
res=$(su - oneadmin -c "${CMD} ${OPT}")
|
||||
if [[ ${?} -ne 0 ]]
|
||||
then
|
||||
error "Hosts sync failed"
|
||||
|
Loading…
Reference in New Issue
Block a user