3 git_local_repo=~/flab-sfa
6 sudo sfaadmin.py registry nuke
8 # ATTENTION :Save the config file /etc/sfa/sfa_config
11 # Remove all the remaining gid, creds files
13 sudo rm -rf /var/lib/sfa
16 sudo service sfa restart
18 # Drop table in slab_sfa
19 # to avoid duplicates.
20 psql -d slab_sfa -U sfa -W -q -c "drop table slice_senslab;"
22 # Put back the config file that you saved before
23 cd $git_local_repo/sfa/senslab/
27 sudo python setup.py install
28 sudo service sfa restart
30 # Wrote /etc/sfa/configs/site.xml
32 # /etc/sfa/default_config.xml
33 # and /etc/sfa/configs/site.xml
34 # into /etc/sfa/sfa_config.xml
36 sudo cp $git_local_repo/sfa/senslab/config/sfa_config /etc/sfa/sfa_config
37 sudo cp $git_local_repo/sfa/senslab/config/sfa_config.xml /etc/sfa/sfa_config.xml
38 sudo cp $git_local_repo/sfa/senslab/config/site.xml /etc/sfa/configs/site.xml
39 # sudo ln -s ldap_config.py /etc/sfa/ldap_config.py
40 sudo cp $git_local_repo/sfa/senslab/config/ldap_config.py /etc/sfa/ldap_config.py
42 # User stuff : clean your folder
44 rm *.sscert *.cred *.gid
47 # Import the datbase form ldap
48 sudo sfaadmin.py registry import_registry
49 sudo service sfa restart