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 |
|
| Variable | Meaning | Default |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| `REPO_URL` | Git URL to clone | `https://github.com/YakPanel/YakPanel.git` (optional: `https://source.yakpanel.com/admin/yakpanel-core` if anonymous clone is enabled) |
|
| `REPO_URL` | Git URL to clone | `https://source.yakpanel.com/admin/yakpanel-core` (override for other mirrors) |
|
||||||
| `YAKPANEL_BRANCH` | Branch/tag for shallow clone | default branch |
|
| `YAKPANEL_BRANCH` | Branch/tag for shallow clone | default branch |
|
||||||
| `GIT_REF` | Alias for `YAKPANEL_BRANCH` | — |
|
| `GIT_REF` | Alias for `YAKPANEL_BRANCH` | — |
|
||||||
| `INSTALL_PATH` | Install directory | `/www/server/YakPanel-server` |
|
| `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`).
|
Uses `docker-compose.yml` in this directory — **not** the same layout as native (no host Nginx unit from `install.sh`).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone --depth 1 https://github.com/YakPanel/YakPanel.git
|
git clone --depth 1 https://source.yakpanel.com/admin/yakpanel-core
|
||||||
# Then cd to this folder (in the full monorepo it is under YakPanel-master/YakPanel-server).
|
# Then cd to this folder (in the full monorepo it is under YakPanel-master/YakPanel-server).
|
||||||
cd YakPanel-master/YakPanel-server
|
cd YakPanel-master/YakPanel-server
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
# sudo -E bash install.sh
|
# sudo -E bash install.sh
|
||||||
#
|
#
|
||||||
# Environment (optional):
|
# 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)
|
# YAKPANEL_BRANCH Branch/tag for shallow clone (default: default branch)
|
||||||
# GIT_REF Alias for YAKPANEL_BRANCH
|
# GIT_REF Alias for YAKPANEL_BRANCH
|
||||||
# INSTALL_PATH Install dir (default: /www/server/YakPanel-server)
|
# INSTALL_PATH Install dir (default: /www/server/YakPanel-server)
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
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}"
|
INSTALL_PATH="${INSTALL_PATH:-/www/server/YakPanel-server}"
|
||||||
PANEL_PORT="${PANEL_PORT:-8888}"
|
PANEL_PORT="${PANEL_PORT:-8888}"
|
||||||
BACKEND_PORT="${BACKEND_PORT:-8889}"
|
BACKEND_PORT="${BACKEND_PORT:-8889}"
|
||||||
@@ -212,9 +212,9 @@ else
|
|||||||
CLONE_ARGS+=("$REPO_URL" "$TMP_DIR/repo")
|
CLONE_ARGS+=("$REPO_URL" "$TMP_DIR/repo")
|
||||||
if ! "${CLONE_ARGS[@]}"; then
|
if ! "${CLONE_ARGS[@]}"; then
|
||||||
echo "Git clone failed. Check REPO_URL=$REPO_URL, DNS, and outbound HTTPS."
|
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 " 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
|
exit 1
|
||||||
fi
|
fi
|
||||||
SRC_DIR="$(find_yakpanel_root_in_tree "$TMP_DIR/repo")"
|
SRC_DIR="$(find_yakpanel_root_in_tree "$TMP_DIR/repo")"
|
||||||
|
|||||||
Reference in New Issue
Block a user