This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from ARGOeu/devel
Version 2.2.0
- Loading branch information
Showing
130 changed files
with
9,054 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
RUNASUSER="apache" | ||
SITEPACK=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") | ||
|
||
if (( $# > 0 )) | ||
then | ||
echo -e "\nScript does not take any argument and should be called without any\n" | ||
exit 1 | ||
fi | ||
|
||
su -m -s /bin/sh $RUNASUSER -c \ | ||
"export DJANGO_SETTINGS_MODULE=Poem.settings && \ | ||
python $SITEPACK/Poem/sync/poem-syncservices.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
|
||
RUNASUSER="apache" | ||
SITEPACK=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") | ||
|
||
usage() | ||
{ | ||
printf "Usage: %s -t <tenant name> [-o token]\n" $(basename $0) >&2 | ||
printf " [-t] - tenant\n" >&2 | ||
printf " [-o] - token\n" >&2 | ||
exit 2 | ||
} | ||
|
||
if [[ $# == 0 ]] | ||
then | ||
usage | ||
fi | ||
|
||
while getopts 't:o:' OPTION | ||
do | ||
case $OPTION in | ||
t) | ||
tenant=$OPTARG | ||
;; | ||
o) | ||
token=$OPTARG | ||
;; | ||
h) | ||
usage | ||
;; | ||
?) | ||
usage | ||
;; | ||
esac | ||
done | ||
|
||
if [ -z "$token" ] | ||
then | ||
su -m -s /bin/sh $RUNASUSER -c \ | ||
"export DJANGO_SETTINGS_MODULE=Poem.settings && \ | ||
python $SITEPACK/Poem/manage.py api_token --tenant $tenant" | ||
else | ||
su -m -s /bin/sh $RUNASUSER -c \ | ||
"export DJANGO_SETTINGS_MODULE=Poem.settings && \ | ||
python $SITEPACK/Poem/manage.py api_token --tenant $tenant --token $token" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
50 * * * * root source /etc/profile.d/venv_poem.sh; workon poem; $VIRTUAL_ENV/bin/poem-syncservtype; $VIRTUAL_ENV/bin/poem-syncvo | ||
50 * * * * root source /etc/profile.d/venv_poem.sh; workon poem; $VIRTUAL_ENV/bin/poem-syncservtype; $VIRTUAL_ENV/bin/poem-syncvo; $VIRTUAL_ENV/bin/poem-syncservices |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
default_app_config = "poem.apps.PoemConfig" | ||
Empty file.
Oops, something went wrong.