Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/mcore-controld.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2421 by niro, Wed Sep 2 09:25:10 2015 UTC revision 2438 by niro, Thu Sep 3 12:50:25 2015 UTC
# Line 19  include ${MCORE_LIBDIR}/include/mysqlfun Line 19  include ${MCORE_LIBDIR}/include/mysqlfun
19  # load control classes plugins  # load control classes plugins
20  load_classes control  load_classes control
21    
22    # config settings
23    include @@SYSCONFDIR@@/mcore/mcore.conf
24    
25  SQL_USER=alx  SQL_USER=alx
26  SQL_PASS=@lx  SQL_PASS=@lx
27  SQL_HOST=localhost  SQL_HOST=localhost
# Line 103  do Line 106  do
106   get) run_class ;;   get) run_class ;;
107   set) run_class ;;   set) run_class ;;
108   auth) validate_auth ${GLOBAL_ARGV[*]:1} ;;   auth) validate_auth ${GLOBAL_ARGV[*]:1} ;;
109     certauth) validate_auth_certificate ${GLOBAL_ARGV[*]:1} ;;
110     register) valid_session && validate_client ${GLOBAL_ARGV[*]:1} ;;
111   provide) valid_session && print_provide ;;   provide) valid_session && print_provide ;;
112   require) valid_session && verify_requirements ;;   require) valid_session && verify_requirements ;;
113   reload) valid_session && mecho "reloading client classes ..." && load_classes client ;;   reload) valid_session && mecho "reloading client classes ..." && load_classes client ;;
# Line 126  do Line 131  do
131   else   else
132   mecho "You must authenticate yourself first!"   mecho "You must authenticate yourself first!"
133   mecho "  auth [username] [password]"   mecho "  auth [username] [password]"
134     mecho "or"
135     mecho "  certauth [certificate fingerprint]"
136   fi   fi
137   ;;   ;;
138    

Legend:
Removed from v.2421  
changed lines
  Added in v.2438