From 08c5cbfc51289e09e34ff02da1516f733fbbbc32 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 7 Apr 2025 11:22:28 +0200 Subject: [PATCH] Update fumadocs-install.sh --- install/fumadocs-install.sh | 42 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/install/fumadocs-install.sh b/install/fumadocs-install.sh index c0a3840..1d7aa07 100644 --- a/install/fumadocs-install.sh +++ b/install/fumadocs-install.sh @@ -14,9 +14,9 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - gnupg \ - ca-certificates \ - expect + gnupg \ + ca-certificates \ + expect msg_ok "Installed Dependencies" msg_info "Installing Node.js" @@ -29,26 +29,27 @@ $STD npm install -g pnpm msg_ok "Installed Node.js" msg_info "Installing Fumadocs" -temp_file=$(mktemp) -RELEASE=$(curl -fsSL https://api.github.com/repos/fuma-nama/fumadocs/releases/latest | grep '"tag_name"' | awk -F '"' '{print $4}') +fetch_and_deploy_gh_release fuma-nama/fumadocs +# temp_file=$(mktemp) +# RELEASE=$(curl -fsSL https://api.github.com/repos/fuma-nama/fumadocs/releases/latest | grep '"tag_name"' | awk -F '"' '{print $4}') export NODE_OPTIONS="--max-old-space-size=4096" -curl -fsSL "https://github.com/fuma-nama/fumadocs/archive/refs/tags/${RELEASE}.tar.gz" -o "$temp_file" -tar -xzf $temp_file -mv fumadocs-* "/opt/fumadocs" +# curl -fsSL "https://github.com/fuma-nama/fumadocs/archive/refs/tags/${RELEASE}.tar.gz" -o "$temp_file" +# tar -xzf $temp_file +# mv fumadocs-* "/opt/fumadocs" cd /opt/fumadocs $STD pnpm install -spawn pnpm create fumadocs-app -expect "Project name" -send "my-app\r" -expect "Choose a template" -send "Next.js: Fumadocs MDX\r" -expect "Use \`/src\` directory?" -send "No\r" -expect "Add default ESLint configuration?" -send "No\r" -expect "Do you want to install packages automatically?*" -send "Yes\r" -expect eof +pnpm create fumadocs-app +# expect "Project name" +# send "my-app\r" +# expect "Choose a template" +# send "Next.js: Fumadocs MDX\r" +# expect "Use \`/src\` directory?" +# send "No\r" +# expect "Add default ESLint configuration?" +# send "No\r" +# expect "Do you want to install packages automatically?*" +# send "Yes\r" +# expect eof echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Fumadocs" @@ -72,7 +73,6 @@ motd_ssh customize msg_info "Cleaning up" -rm -f $temp_file $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned"