-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Truncate dbshell output dbshell prints a line with the fields name when using MySQL. Using `tail -n1` fixes the issue.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
- name: "Get SS API Key" | ||
shell: > | ||
echo "select \`key\` from tastypie_apikey where id in (select id from auth_user where username = '{{ archivematica_src_configure_ss_user }}');" | ||
| {{ archivematica_src_ss_virtualenv }}/bin/python manage.py dbshell | ||
| {{ archivematica_src_ss_virtualenv }}/bin/python manage.py dbshell | tail -n1 | ||
args: | ||
chdir: "{{ archivematica_src_ss_app }}" | ||
executable: /bin/bash | ||
|
@@ -41,7 +41,7 @@ | |
|
||
- name: "Check for default SS user" | ||
become: "yes" | ||
shell: echo 'select username from auth_user where (id=1 and last_login is NULL and first_name="" and last_name="" and email="[email protected]" and username="test");' | {{ archivematica_src_ss_virtualenv }}/bin/python manage.py dbshell | ||
shell: echo 'select username from auth_user where (id=1 and last_login is NULL and first_name="" and last_name="" and email="[email protected]" and username="test");' | {{ archivematica_src_ss_virtualenv }}/bin/python manage.py dbshell | tail -n1 | ||
args: | ||
chdir: "{{ archivematica_src_ss_app }}" | ||
executable: /bin/bash | ||
|
@@ -66,7 +66,7 @@ | |
|
||
- name: "Check for SS user" | ||
become: "yes" | ||
shell: echo 'select username from auth_user where username="{{ archivematica_src_configure_ss_user }}";' | {{ archivematica_src_ss_virtualenv }}/bin/python manage.py dbshell | ||
shell: echo 'select username from auth_user where username="{{ archivematica_src_configure_ss_user }}";' | {{ archivematica_src_ss_virtualenv }}/bin/python manage.py dbshell | tail -n1 | ||
args: | ||
chdir: "{{ archivematica_src_ss_app }}" | ||
executable: /bin/bash | ||
|