Initial YakPanel commit
This commit is contained in:
@@ -49,7 +49,7 @@ All native installs require **root**. Use `sudo -E ...` when you set environment
|
||||
|
||||
| Variable | Meaning | Default |
|
||||
| --- | --- | --- |
|
||||
| `REPO_URL` | Git URL to clone | `https://source.yakpanel.com/admin/yakpanel-core` (override for other mirrors) |
|
||||
| `REPO_URL` | Git URL to clone | `https://source.yakpanel.com/admin/yakpanel-core.git` (override for other mirrors) |
|
||||
| `YAKPANEL_BRANCH` | Branch/tag for shallow clone | default branch |
|
||||
| `GIT_REF` | Alias for `YAKPANEL_BRANCH` | — |
|
||||
| `INSTALL_PATH` | Install directory | `/www/server/YakPanel-server` |
|
||||
@@ -103,7 +103,7 @@ sudo bash scripts/install.sh
|
||||
Uses `docker-compose.yml` in this directory — **not** the same layout as native (no host Nginx unit from `install.sh`).
|
||||
|
||||
```bash
|
||||
git clone --depth 1 https://source.yakpanel.com/admin/yakpanel-core
|
||||
git clone --depth 1 https://source.yakpanel.com/admin/yakpanel-core.git
|
||||
# Then cd to this folder (in the full monorepo it is under YakPanel-master/YakPanel-server).
|
||||
cd YakPanel-master/YakPanel-server
|
||||
docker compose up -d
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
# sudo -E bash install.sh
|
||||
#
|
||||
# Environment (optional):
|
||||
# REPO_URL Git URL (default: https://source.yakpanel.com/admin/yakpanel-core)
|
||||
# REPO_URL Git URL (default: https://source.yakpanel.com/admin/yakpanel-core.git)
|
||||
# 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://source.yakpanel.com/admin/yakpanel-core}"
|
||||
REPO_URL="${REPO_URL:-https://source.yakpanel.com/admin/yakpanel-core.git}"
|
||||
INSTALL_PATH="${INSTALL_PATH:-/www/server/YakPanel-server}"
|
||||
PANEL_PORT="${PANEL_PORT:-8888}"
|
||||
BACKEND_PORT="${BACKEND_PORT:-8889}"
|
||||
@@ -213,7 +213,7 @@ else
|
||||
if ! "${CLONE_ARGS[@]}"; then
|
||||
echo "Git clone failed. Check REPO_URL=$REPO_URL, DNS, and outbound HTTPS."
|
||||
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 " REPO_URL=https://USER:TOKEN@source.yakpanel.com/admin/yakpanel-core.git"
|
||||
echo "Or override: REPO_URL=https://your.other.git/mirror.git"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user