From c8be8632e506b37ad618acb1df86b7c019e99ac5 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Mon, 24 Oct 2022 11:38:42 +0100 Subject: [PATCH] replace the long options to the shorter ones --- fix_cloud.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fix_cloud.sh b/fix_cloud.sh index 52e77b1..0d43eb0 100755 --- a/fix_cloud.sh +++ b/fix_cloud.sh @@ -136,7 +136,7 @@ if [[ -n "${percona_cluster}" ]] ; then if [[ -n ${bootstrap_unit} ]] then ${juju_run_action} --wait "${bootstrap_unit}" bootstrap-pxc - ${juju_run} --application mysql "hooks/update-status" + ${juju_run} -a mysql "hooks/update-status" until [[ $(check_unit_status mysql "Unit waiting for cluster bootstrap") -eq 1 ]] do sleep 10 @@ -188,7 +188,7 @@ if [[ -n "${mysql_innodb_cluster}" ]] ; then fi - #${juju_run} --application mysql-innodb-cluster "hooks/update-status" + #${juju_run} -a mysql-innodb-cluster "hooks/update-status" # Run update-status on all mysql-router units, to ensure that theyave connected to the mysql-innodb-cluster #jq -r ".applications | to_entries[] | select(.value[\"charm-name\"] == \"mysql-router\") | .key" "${juju_status}" \ @@ -206,13 +206,13 @@ wait # cleanup all crm resources jq -r ".applications | to_entries[] | select(.value[\"charm-name\"] == \"hacluster\") | .key" "${juju_status}" \ - | xargs -I{} ${juju_run} --unit "{}"/leader -- 'sudo crm_resource -l | sed s/:.*//g | uniq | xargs -i sudo crm resource cleanup \"\{\}\"' + | xargs -I{} ${juju_run} -u "{}"/leader -- 'sudo crm_resource -l | sed s/:.*//g | uniq | xargs -i sudo crm resource cleanup \"\{\}\"' do_vault # remove DNS entry for external network -${juju_run} --all -- sudo sed -i -e s/192.168.1.13,//g -e s/192.168.1.9,//g /etc/netplan/99-juju.yaml -${juju_run} --all -- "sudo netplan apply ; sudo systemctl restart systemd-resolved" +${juju_run} -a -- sudo sed -i -e s/192.168.1.13,//g -e s/192.168.1.9,//g /etc/netplan/99-juju.yaml +${juju_run} -a -- "sudo netplan apply ; sudo systemctl restart systemd-resolved" ceph_osd_apps=$(jq -rc ".applications | to_entries[] | select(.value[\"charm-name\"] == \"ceph-osd\") | .key" "${juju_status}")