Update homepage-install.sh

install per releases/latest
pull/2259/head
tteckster 11 months ago committed by GitHub
parent 72b8deb363
commit 144c067c6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,15 +37,18 @@ $STD apt-get install -y nodejs
$STD npm install -g pnpm
msg_ok "Installed Node.js"
msg_info "Installing Homepage (Patience)"
cd /opt
$STD git clone https://github.com/benphelps/homepage.git
RELEASE=$(curl -s https://api.github.com/repos/gethomepage/homepage/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
msg_info "Installing Homepage v${RELEASE} (Patience)"
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
mkdir -p config
cp /opt/homepage/src/skeleton/* /opt/homepage/config
$STD pnpm install
$STD pnpm build
msg_ok "Installed Homepage"
msg_ok "Installed Homepage v${RELEASE}"
msg_info "Creating Service"
service_path="/etc/systemd/system/homepage.service"

Loading…
Cancel
Save

Powered by BW's shoe-string budget.