Projet

Général

Profil

Révision 679a3ce7

ID679a3ce7beec5476eb7ac45fd814e5f790b0dbfb
Parent 2583b9fb
Enfant bb206fae

Ajouté par Stig Sandbeck Mathisen il y a environ 11 ans

Check if we are running as a user required by rabbitmqctl

Voir les différences:

plugins/rabbitmq/rabbitmq_connections
42 42

  
43 43
=cut
44 44

  
45
case $(whoami) in
46
    rabbitmq|root)
47
        ;;
48
    *)
49
        echo 'Error: Plugin requires "user" to be set in plugin configuration.' >&2
50
        echo 'See "munindoc rabbitmq_connections" for more information'  >&2
51
        exit 1
52
        ;;
53
esac
54

  
45 55
# If run with the "config"-parameter, give out information on how the
46 56
# graphs should look. 
47 57

  

Formats disponibles : Unified diff