mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 06:21:56 +00:00
Update homepage-install.sh
This commit is contained in:
parent
7ba8391cca
commit
58d56ef28c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user