Skip to content
Snippets Groups Projects
Commit 13224e1a authored by Einar Largenius's avatar Einar Largenius
Browse files

Remove cronscript.sh

Its not needed. `venv/bin/python supr_swestore_main.py` does the same thing.
parent dc4c7f9d
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
This is NAISS SUPR LDAP integration, a collection of scripts to synchronize This is NAISS SUPR LDAP integration, a collection of scripts to synchronize
and update user and project information between SUPR and the Swestore LDAP. and update user and project information between SUPR and the Swestore LDAP.
The files in 1time_Scripts, del_scripts and the file weekly_cleanup.py are The files in 1time_Scripts and del_scripts are out of date and untested.
out of date and untested.
The main entry point is supr_swestore_main.py.
# Installation # Installation
...@@ -53,3 +54,7 @@ you have ran the script in bin/activate first. ...@@ -53,3 +54,7 @@ you have ran the script in bin/activate first.
Then you should be ready: Then you should be ready:
venv/bin/python3 supr_swestore_main.py venv/bin/python3 supr_swestore_main.py
# More information
- https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments
#!/bin/bash
# Initializes environment for supr-ldap-integration
# Source init scripts.
. /etc/profile
# TODO: Update path
LD_LIBRARY_PATH="/supr/lib64:/opt/rh/python27/root/usr/lib64"
export LD_LIBRARY_PATH
# Source virtual environment and call python script.
cd /supr || exit
. venv/bin/activate
python3 supr_swestore_main.py || echo "Python script failed"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment