From 58d56ef28c8f794c1b8ccf30c10ce0e11da2e1a6 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 17 Sep 2022 12:05:13 -0400 Subject: [PATCH] Update homepage-install.sh --- setup/homepage-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup/homepage-install.sh b/setup/homepage-install.sh index 127ea407..833d35a6 100644 --- a/setup/homepage-install.sh +++ b/setup/homepage-install.sh @@ -74,20 +74,20 @@ apt-get install -y git &>/dev/null msg_ok "Installed Dependencies" msg_info "Setting up Node.js Repository" -curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &>/dev/null +curl -fsSL https://deb.nodesource.com/setup_14.x | bash - &>/dev/null msg_ok "Set up Node.js Repository" msg_info "Installing Node.js" apt-get install -y nodejs &>/dev/null -# npm install -g pnpm &>/dev/null +npm install -g pnpm &>/dev/null msg_ok "Installed Node.js" msg_info "Installing Homepage" git clone https://github.com/benphelps/homepage.git /opt/homepage &>/dev/null cd /opt/homepage mkdir -p config -npm install &>/dev/null -npm run build &>/dev/null +pnpm install &>/dev/null +pnpm build &>/dev/null msg_ok "Installed Homepage" msg_info "Creating Service" @@ -102,7 +102,7 @@ Restart=always RestartSec=1 User=root WorkingDirectory=/opt/homepage/ -ExecStart=npm start +ExecStart=pnpm start [Install] WantedBy=multi-user.target" > $service_path systemctl enable --now homepage &>/dev/null