Update homepage-install.sh

install per releases/latest
This commit is contained in:
tteckster 2023-12-17 20:21:23 -05:00 committed by GitHub
parent 72b8deb363
commit 144c067c6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

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