Skip to content

Commit c7cea45

Browse files
Add full path to /usr/bin/python3
1 parent 2ec711a commit c7cea45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/resize.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323

2424
if [ $# -eq 0 ] || [ $1 == "--help" ]
2525
then
26-
python3 $folder/resize.py --help
26+
/usr/bin/python3 $folder/resize.py --help
2727
exit
2828
fi
2929

@@ -104,7 +104,7 @@ then
104104
mysql -u $ENV_MYSQL_USER -p$ENV_MYSQL_PASS -e "use $ENV_MYSQL_DATABASE_NAME; UPDATE cluster_log.clusters SET started_resize='$start_timestamp',state='resizing' WHERE id='$cluster_id'" >> $log 2>&1
105105
fi
106106

107-
python3 $folder/resize.py ${@} | tee -a $log 2>&1 | grep STDOUT
107+
/usr/bin/python3 $folder/resize.py ${@} | tee -a $log 2>&1 | grep STDOUT
108108
status=${PIPESTATUS[0]}
109109
end=`date -u +%s`
110110
end_timestamp=`date -u +'%F %T'`
@@ -115,7 +115,7 @@ then
115115
echo "Successfully Resized cluster $cluster_name in $runtime seconds"
116116
if [ -f $monitoring_folder/activated ]
117117
then
118-
nodes_list=`python3 $folder/resize.py --cluster_name $cluster_name list | grep ocid1.instance`
118+
nodes_list=`/usr/bin/python3 $folder/resize.py --cluster_name $cluster_name list | grep ocid1.instance`
119119

120120
length=`echo $nodes_list | wc -w`
121121
newSize=$((length/3))
@@ -170,5 +170,5 @@ then
170170
rm currently_resizing
171171
fi
172172
else
173-
python3 $folder/resize.py ${@}
173+
/usr/bin/python3 $folder/resize.py ${@}
174174
fi

0 commit comments

Comments
 (0)