Skip to content

container automatic modify W9_URL for [mediawiki] #394

@chendelin1982

Description

@chendelin1982

What type of your feature request?

Have add busybox to modify LocalSettings.php and it can exit after running commands.
need to do:

  • 在busybox 中提供一个可以修改 LocalSettings.php 的 $wgServer = '//cdl.websoft9.cn:9001'; 正则
  busybox:
    image: busybox
    volumes:
      - mediawiki:/data
    command: |
      /bin/sh -c "
      while [ ! -f /data/LocalSettings.php ]; do
        echo 'Waiting for LocalSettings.php to be created...'
        sleep 2
      done
      echo 'LocalSettings.php found, proceeding...'
      
      add code herer

      kill 1
      "

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureType label, New feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions