mirror of https://github.com/tteck/Proxmox.git
Update homepage-install.sh
Change the installation method from using git to using releases.
This commit is contained in:
parent
5f8c6ecdf8
commit
8d5e6aedd4
|
@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y curl
|
||||||
$STD apt-get install -y sudo
|
$STD apt-get install -y sudo
|
||||||
$STD apt-get install -y mc
|
$STD apt-get install -y mc
|
||||||
$STD apt-get install -y git
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Node.js Repository"
|
msg_info "Setting up Node.js Repository"
|
||||||
|
@ -30,7 +29,12 @@ $STD npm install -g pnpm
|
||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Installing Homepage (Patience)"
|
msg_info "Installing Homepage (Patience)"
|
||||||
$STD git clone https://github.com/benphelps/homepage.git /opt/homepage
|
RELEASE=$(curl -s https://api.github.com/repos/benphelps/homepage/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
|
wget -q https://github.com/benphelps/homepage/archive/refs/tags/v${RELEASE}.tar.gz
|
||||||
|
$STD tar -xvf v${RELEASE}.tar.gz
|
||||||
|
mkdir -p /opt/homepage
|
||||||
|
cp -r homepage-${RELEASE}/* /opt/homepage
|
||||||
|
rm -rf v${RELEASE}.tar.gz homepage-${RELEASE}
|
||||||
cd /opt/homepage
|
cd /opt/homepage
|
||||||
mkdir -p config
|
mkdir -p config
|
||||||
cp /opt/homepage/src/skeleton/* /opt/homepage/config
|
cp /opt/homepage/src/skeleton/* /opt/homepage/config
|
||||||
|
|
Loading…
Reference in New Issue