Skip to content

Commit

Permalink
Adding /etc/init.d/spring-boot support.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiotocalini committed May 28, 2018
1 parent f104bf8 commit 8aae5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custix/scripts/sw-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ refresh_cache() {
IFS=":" APPS=(${AMANA_APPS})
for app in ${APPS[@]}; do
if [[ ${app} == 'springboot' ]]; then
springboot=`/etc/init.d/spring-boot list json id name desc version 2>/dev/null`
springboot=`sudo /etc/init.d/spring-boot list json id name desc version 2>/dev/null`
json_raw=`echo "${json_raw:-{}}" | jq ".apps.springboot=${springboot}" 2>/dev/null`
elif [[ ${app} == 'gunicorn' ]]; then
gunicorn=`/etc/init.d/gunicorn list json id name desc version 2>/dev/null`
gunicorn=`sudo /etc/init.d/gunicorn list json id name desc version 2>/dev/null`
json_raw=`echo "${json_raw:-{}}" | jq ".apps.gunicorn=${gunicorn}" 2>/dev/null`
elif [[ ${app} == 'mysql' ]]; then
dbs=`/etc/zabbix/scripts/agentd/mysbix/mysbix.sh -s db_count 2>/dev/null`
Expand Down

0 comments on commit 8aae5a8

Please sign in to comment.