Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
supr-ldap-integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Swestore
supr-ldap-integration
Commits
06bfd60c
Commit
06bfd60c
authored
2 years ago
by
Einar Largenius
Browse files
Options
Downloads
Patches
Plain Diff
Setup venv
parent
4a13e3f4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-4
1 addition, 4 deletions
.gitignore
README.md
+2
-2
2 additions, 2 deletions
README.md
cronscript.sh
+7
-12
7 additions, 12 deletions
cronscript.sh
with
10 additions
and
18 deletions
.gitignore
+
1
−
4
View file @
06bfd60c
# virtualenv
/bin/
/include/
/lib/
/pyvenv.cfg
/venv/
# Settings
/settings.py
...
...
This diff is collapsed.
Click to expand it.
README.md
+
2
−
2
View file @
06bfd60c
...
...
@@ -24,14 +24,14 @@ installing packages local to the project.
First create the virtual environment:
```
sh
virtualenv
-p
python2 .
python3
-m
venv venv
```
In order to enable it run the shell appropriate script found in the
newly created bin directory, for example:
```
sh
source
bin/activate
source
venv/
bin/activate
```
## Installing python dependencies
...
...
This diff is collapsed.
Click to expand it.
cronscript.sh
+
7
−
12
View file @
06bfd60c
#!/bin/sh
#exit 0 #(krishnaveni: 2022-08-18 till auth1 is fixed due to CVE-2022-2414)
#!/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
# Build virtual environment and call python script.
cd
/supr
source
bin/activate
python supr_swestore_main.py
if
[
$?
-ne
0
]
then
echo
"Python script failed"
fi
deactivate
# Source virtual environment and call python script.
cd
/supr
||
exit
.
venv/bin/activate
python3 supr_swestore_main.py
||
echo
"Python script failed"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment