Update homepage-install.sh

This commit is contained in:
tteckster 2022-09-17 12:05:13 -04:00 committed by GitHub
parent 7ba8391cca
commit 58d56ef28c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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