Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ai3
docker
noblogs
Commits
a1d86507
Commit
a1d86507
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Refine wp-cli installation
parent
f67bd20f
No related branches found
No related tags found
No related merge requests found
Pipeline
#14800
failed
4 years ago
Stage: build
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+15
-2
15 additions, 2 deletions
build.sh
with
15 additions
and
2 deletions
build.sh
+
15
−
2
View file @
a1d86507
...
...
@@ -78,11 +78,24 @@ mkdir -p /opt/noblogs/www/wp-content/blogs.dir
mkdir
-p
/opt/noblogs/www/wp-content/cache
mkdir
-p
/var/lib/php/uploads
# Install wp-cli directly from the net.
# Install wp-cli directly from the net, along with minimal
# configuration, passed via a wrapper.
curl
-o
/usr/bin/wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
cat
>
/etc/wp-cli.yml
<<
EOF
path: /opt/noblogs/www
color: false
user: admin
disabled_commands:
- db drop
- plugin install
EOF
chmod
0644 /etc/wp-cli.yml
cat
>
/usr/bin/wp
<<
EOF
#!/bin/sh
exec /usr/bin/php /usr/bin/wp-cli.phar --path=/opt/noblogs/www "
\$
@"
export WP_CLI_CONFIG_PATH=/etc/wp-cli.yml
export WP_CLI_CUSTOM_SHELL=/bin/sh
export WP_CLI_DISABLE_AUTO_CHECK_UPDATE=1
exec /usr/bin/php /usr/bin/wp-cli.phar "
\$
@"
EOF
chmod
0755 /usr/bin/wp /usr/bin/wp-cli.phar
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment