You are here

command.txt in Monitoring 7

#!/bin/bash

NAME=@name

# Make sure the drush path, root and uri are correct.
#
DRUSH="/path/to/drush --root=@root --uri=@uri monitoring-munin"

# Alternatively with sudo
#
# DRUSH="sudo -u www_user /path/to/drush --root=@root --uri=@uri monitoring-munin"

case $1 in
  config)
    DRUSH=$DRUSH" --get-config"
esac

$DRUSH

File

modules/monitoring_munin/config_tpl/command.txt
View source
  1. #!/bin/bash
  2. NAME=@name
  3. # Make sure the drush path, root and uri are correct.
  4. #
  5. DRUSH="/path/to/drush --root=@root --uri=@uri monitoring-munin"
  6. # Alternatively with sudo
  7. #
  8. # DRUSH="sudo -u www_user /path/to/drush --root=@root --uri=@uri monitoring-munin"
  9. case $1 in
  10. config)
  11. DRUSH=$DRUSH" --get-config"
  12. esac
  13. $DRUSH