Changeset 1319 for lliurex-moodle


Ignore:
Timestamp:
May 2, 2016, 9:32:22 AM (3 years ago)
Author:
kbut
Message:

update scripts to sync ldap users with moodle users

Location:
lliurex-moodle/trunk/fuentes/lliurex-moodle.install-files/usr/share/n4d/hooks/golem
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-moodle/trunk/fuentes/lliurex-moodle.install-files/usr/share/n4d/hooks/golem/51_moodle_create-cohorte.py

    r283 r1319  
    33import time
    44import os
     5import subprocess
    56
    67class Moodle_updater:
     
    145146        #def execute
    146147
     148single_sync=["add_user","add_generic_users","gescen_partial","gescen_full"]
     149if NEVERLAND_VAR in single_sync:
     150        subprocess.Popen(["/usr/bin/php","/usr/share/moodle/auth/ldap/cli/sync_users.php"]).communicate()
     151
    147152aux = Moodle_updater(NEVERLAND_VAR,ARGV)
    148 print "*********************"
    149 print NEVERLAND_VAR, ARGV
    150 print "*********************"
    151153aux.execute()
Note: See TracChangeset for help on using the changeset viewer.