Skip to content

Instantly share code, notes, and snippets.

@pebbie
Created July 6, 2020 17:27
Show Gist options
  • Save pebbie/18594be72004e6bb899587dc611df9c5 to your computer and use it in GitHub Desktop.
Save pebbie/18594be72004e6bb899587dc611df9c5 to your computer and use it in GitHub Desktop.

Revisions

  1. pebbie created this gist Jul 6, 2020.
    13 changes: 13 additions & 0 deletions wikibase-docker_qs_login_hacks.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    you need to execute these commands inside the quickstatements docker container (e.g. from terminal:

    `docker exec -it wikibase-docker_quickstatements_1 /bin/bash`

    ) or replace the file using local file mapping in the `docker-compose.yml` recipe

    1. comment out the `require_once` line in the `/var/www/html/magnustools/public_html/php/wikidata.php` for example, using sed :

    `sed -i 's/require_once/\/\/require_once/' /var/www/html/magnustools/public_html/php/wikidata.php`

    2. replace 'api.php' into 'oob' in `/var/www/html/quickstatements/public_html/api.php` :

    `sed -i 's/api.php/oob/' /var/www/html/quickstatements/public_html/api.php`