Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
c7e1e67a
Commit
c7e1e67a
authored
Apr 12, 2015
by
Daniel Tschan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use actual Django configuration for admin password generation to keep pep8 happy.
parent
0acce108
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
openshift/install.sh
openshift/install.sh
+1
-1
openshift/secure_db.py
openshift/secure_db.py
+0
-5
No files found.
openshift/install.sh
View file @
c7e1e67a
...
@@ -100,7 +100,7 @@ sh "python ${OPENSHIFT_REPO_DIR}/openshift/manage.py collectstatic --noinput"
...
@@ -100,7 +100,7 @@ sh "python ${OPENSHIFT_REPO_DIR}/openshift/manage.py collectstatic --noinput"
if
[
!
-s
$OPENSHIFT_DATA_DIR
/.credentials
]
;
then
if
[
!
-s
$OPENSHIFT_DATA_DIR
/.credentials
]
;
then
echo
"Generating Weblate admin credentials and writing them to
${
OPENSHIFT_DATA_DIR
}
/.credentials"
echo
"Generating Weblate admin credentials and writing them to
${
OPENSHIFT_DATA_DIR
}
/.credentials"
sh
"python
${
OPENSHIFT_REPO_DIR
}
/openshift/manage.py createadmin"
sh
"python
${
OPENSHIFT_REPO_DIR
}
/openshift/manage.py createadmin"
sh
"python
${
OPENSHIFT_REPO_DIR
}
/openshift/secure_db.py | tee
${
OPENSHIFT_DATA_DIR
}
/.credentials"
DJANGO_SETTINGS_MODULE
=
'weblate.settings_openshift'
sh
"python
${
OPENSHIFT_REPO_DIR
}
/openshift/secure_db.py | tee
${
OPENSHIFT_DATA_DIR
}
/.credentials"
fi
fi
if
find_script_dir
;
then
if
find_script_dir
;
then
...
...
openshift/secure_db.py
View file @
c7e1e67a
...
@@ -19,11 +19,6 @@
...
@@ -19,11 +19,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
from
django.conf
import
settings
# Django must be configured before imports, or some will fail with ImproperlyConfigured exception.
settings
.
configure
()
import
os
import
os
import
sqlite3
import
sqlite3
from
openshift.openshiftlibs
import
make_secure_key
,
get_openshift_secret_token
from
openshift.openshiftlibs
import
make_secure_key
,
get_openshift_secret_token
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment