mirror of
https://ghproxy.net/https://github.com/CaptainCore/captaincore.git
synced 2025-10-04 21:11:14 +08:00
16 lines
395 B
Bash
Executable file
16 lines
395 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
#
|
|
# Generates plugin zips on a single site.
|
|
#
|
|
# `captaincore plugins-zip <site> <plugin>...`
|
|
#
|
|
|
|
# Load configuration
|
|
root_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; root_path=${root_path%app*}
|
|
source ${root_path}lib/arguments
|
|
|
|
site=$1
|
|
plugins=${arguments[@]/$site}
|
|
|
|
captaincore ssh $site --script=plugins-zip --plugins="$plugins" --captain_id=$captain_id
|