mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 14:31: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_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Node.js Repository"
|
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_ok "Set up Node.js Repository"
|
||||||
|
|
||||||
msg_info "Installing Node.js"
|
msg_info "Installing Node.js"
|
||||||
apt-get install -y nodejs &>/dev/null
|
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_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Installing Homepage"
|
msg_info "Installing Homepage"
|
||||||
git clone https://github.com/benphelps/homepage.git /opt/homepage &>/dev/null
|
git clone https://github.com/benphelps/homepage.git /opt/homepage &>/dev/null
|
||||||
cd /opt/homepage
|
cd /opt/homepage
|
||||||
mkdir -p config
|
mkdir -p config
|
||||||
npm install &>/dev/null
|
pnpm install &>/dev/null
|
||||||
npm run build &>/dev/null
|
pnpm build &>/dev/null
|
||||||
msg_ok "Installed Homepage"
|
msg_ok "Installed Homepage"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@ -102,7 +102,7 @@ Restart=always
|
|||||||
RestartSec=1
|
RestartSec=1
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/homepage/
|
WorkingDirectory=/opt/homepage/
|
||||||
ExecStart=npm start
|
ExecStart=pnpm start
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" > $service_path
|
WantedBy=multi-user.target" > $service_path
|
||||||
systemctl enable --now homepage &>/dev/null
|
systemctl enable --now homepage &>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user