Initial YakPanel commit
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
# sudo -E bash install.sh
|
||||
#
|
||||
# Environment (optional):
|
||||
# REPO_URL Git URL (default: public GitHub; set to source.yakpanel.com if anonymous clone works)
|
||||
# REPO_URL Git URL (default: https://source.yakpanel.com/admin/yakpanel-core)
|
||||
# YAKPANEL_BRANCH Branch/tag for shallow clone (default: default branch)
|
||||
# GIT_REF Alias for YAKPANEL_BRANCH
|
||||
# INSTALL_PATH Install dir (default: /www/server/YakPanel-server)
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
REPO_URL="${REPO_URL:-https://github.com/YakPanel/YakPanel.git}"
|
||||
REPO_URL="${REPO_URL:-https://source.yakpanel.com/admin/yakpanel-core}"
|
||||
INSTALL_PATH="${INSTALL_PATH:-/www/server/YakPanel-server}"
|
||||
PANEL_PORT="${PANEL_PORT:-8888}"
|
||||
BACKEND_PORT="${BACKEND_PORT:-8889}"
|
||||
@@ -212,9 +212,9 @@ else
|
||||
CLONE_ARGS+=("$REPO_URL" "$TMP_DIR/repo")
|
||||
if ! "${CLONE_ARGS[@]}"; then
|
||||
echo "Git clone failed. Check REPO_URL=$REPO_URL, DNS, and outbound HTTPS."
|
||||
echo "If using source.yakpanel.com: enable anonymous Git read, or use a token URL, e.g."
|
||||
echo "If the server requires sign-in: allow anonymous clone for HTTP(S), or use a token in the URL, e.g."
|
||||
echo " REPO_URL=https://USER:TOKEN@source.yakpanel.com/admin/yakpanel-core"
|
||||
echo "Public tree: REPO_URL=https://github.com/YakPanel/YakPanel.git"
|
||||
echo "Or override: REPO_URL=https://your.other.git/mirror.git"
|
||||
exit 1
|
||||
fi
|
||||
SRC_DIR="$(find_yakpanel_root_in_tree "$TMP_DIR/repo")"
|
||||
|
||||
Reference in New Issue
Block a user