From 4b99e46bfd182780fda9fac503bd0a34744170ac Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 26 Jan 2026 21:16:01 +0100 Subject: [PATCH] Use sh to execute cyberpanel.sh to avoid permission issues - Execute with 'sh' instead of relying on exec permissions - More reliable in process substitution context - Handles cases where chmod might not work properly --- install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 96ff30cd5..d45668845 100644 --- a/install.sh +++ b/install.sh @@ -111,9 +111,10 @@ if [ "$BRANCH_NAME" = "v2.5.5-dev" ] || [ "$BRANCH_NAME" = "stable" ]; then # Try to download from the branch-specific URL if curl --silent -o "$SCRIPT_PATH" "https://raw.githubusercontent.com/master3395/cyberpanel/$BRANCH_NAME/cyberpanel.sh" 2>/dev/null; then if [ -f "$SCRIPT_PATH" ] && [ -s "$SCRIPT_PATH" ]; then - chmod +x "$SCRIPT_PATH" + chmod +x "$SCRIPT_PATH" 2>/dev/null || true echo "✅ Downloaded cyberpanel.sh from branch $BRANCH_NAME" - exec "$SCRIPT_PATH" "$@" + # Use sh to execute to avoid permission issues + exec sh "$SCRIPT_PATH" "$@" fi fi fi @@ -122,9 +123,10 @@ fi if curl --silent -o "$SCRIPT_PATH" "https://cyberpanel.sh/?dl&$SERVER_OS" 2>/dev/null || \ wget -q -O "$SCRIPT_PATH" "https://cyberpanel.sh/?dl&$SERVER_OS" 2>/dev/null; then if [ -f "$SCRIPT_PATH" ] && [ -s "$SCRIPT_PATH" ]; then - chmod +x "$SCRIPT_PATH" + chmod +x "$SCRIPT_PATH" 2>/dev/null || true echo "✅ Downloaded cyberpanel.sh from standard source" - exec "$SCRIPT_PATH" "$@" + # Use sh to execute to avoid permission issues + exec sh "$SCRIPT_PATH" "$@" fi fi