mirror of
https://gh.wpcy.net/https://github.com/CaptainCore/captaincore.git
synced 2026-04-22 17:15:42 +08:00
17 lines
396 B
Bash
Executable file
17 lines
396 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Load configuration
|
|
root_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; root_path=${root_path%app*}
|
|
source ${root_path}lib/arguments
|
|
|
|
cd ${root_path}data
|
|
wp core update
|
|
wp plugin update --all
|
|
wp eval 'CaptainCore\DB::upgrade();'
|
|
|
|
# Git update from server
|
|
cd ${root_path}
|
|
git pull
|
|
|
|
# Grant execute permissions
|
|
find ~/.captaincore/app/ -type f -exec chmod +x {} \;
|