Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos
Commits
934d6ccc
Commit
934d6ccc
authored
Apr 22, 2024
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/patrowl: fix create admin script
parent
ba39209a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
software/patrowl/buildout.hash.cfg
software/patrowl/buildout.hash.cfg
+1
-1
software/patrowl/create_default_admin.py.in
software/patrowl/create_default_admin.py.in
+1
-1
software/patrowl/software.cfg
software/patrowl/software.cfg
+2
-1
No files found.
software/patrowl/buildout.hash.cfg
View file @
934d6ccc
...
@@ -31,7 +31,7 @@ md5sum = d2d8c018fd46a9e2936736961a3fa872
...
@@ -31,7 +31,7 @@ md5sum = d2d8c018fd46a9e2936736961a3fa872
[template-create_default_admin.py.in]
[template-create_default_admin.py.in]
filename = create_default_admin.py.in
filename = create_default_admin.py.in
md5sum =
9b7bb45c5c934884054eedc0f7d801ef
md5sum =
d91efabfb2f107be145b5b668063b500
[template-nginx.conf.in]
[template-nginx.conf.in]
filename = nginx.conf.in
filename = nginx.conf.in
...
...
software/patrowl/create_default_admin.py.in
View file @
934d6ccc
from django.contrib.auth import get_user_model
from django.contrib.auth import get_user_model
User = get_user_model()
User = get_user_model()
if not User.objects.filter(username='{{ admin_username }}').exists():
if not User.objects.filter(username='{{ admin_username }}').exists():
User.objects.create_superuser('{{ admin_username }}', '{{ admin_email }}, '{{ admin_passwd }}')
User.objects.create_superuser('{{ admin_username }}', '{{ admin_email }}
'
, '{{ admin_passwd }}')
software/patrowl/software.cfg
View file @
934d6ccc
...
@@ -88,6 +88,7 @@ eggs =
...
@@ -88,6 +88,7 @@ eggs =
${Werkzeug:egg}
${Werkzeug:egg}
zipp
zipp
cpe
cpe
${slapos.recipe.template:egg}
scripts =
scripts =
gunicorn
gunicorn
celery
celery
...
@@ -300,4 +301,4 @@ pyrsistent = 0.18.0
...
@@ -300,4 +301,4 @@ pyrsistent = 0.18.0
PyYAML = 5.4.1
PyYAML = 5.4.1
six = 1.16.0
six = 1.16.0
#typing-extensions = 3.10.0.2
#typing-extensions = 3.10.0.2
#zipp = 3.6.0
#zipp = 3.6.0
\ No newline at end of file
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