mirror of https://github.com/tteck/Proxmox.git
parent
72b8deb363
commit
144c067c6f
|
@ -37,15 +37,18 @@ $STD apt-get install -y nodejs
|
||||||
$STD npm install -g pnpm
|
$STD npm install -g pnpm
|
||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Installing Homepage (Patience)"
|
RELEASE=$(curl -s https://api.github.com/repos/gethomepage/homepage/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
cd /opt
|
msg_info "Installing Homepage v${RELEASE} (Patience)"
|
||||||
$STD git clone https://github.com/benphelps/homepage.git
|
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz
|
||||||
|
$STD tar -xzf v${RELEASE}.tar.gz
|
||||||
|
mkdir -p /opt/homepage/config
|
||||||
|
mv homepage-${RELEASE}/* /opt/homepage
|
||||||
|
rm -rf mv homepage-${RELEASE}
|
||||||
cd /opt/homepage
|
cd /opt/homepage
|
||||||
mkdir -p config
|
|
||||||
cp /opt/homepage/src/skeleton/* /opt/homepage/config
|
cp /opt/homepage/src/skeleton/* /opt/homepage/config
|
||||||
$STD pnpm install
|
$STD pnpm install
|
||||||
$STD pnpm build
|
$STD pnpm build
|
||||||
msg_ok "Installed Homepage"
|
msg_ok "Installed Homepage v${RELEASE}"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
service_path="/etc/systemd/system/homepage.service"
|
service_path="/etc/systemd/system/homepage.service"
|
||||||
|
|
Loading…
Reference in New Issue