mirror of https://github.com/tteck/Proxmox.git
Update homarr-install.sh
This commit is contained in:
parent
6ef30fbeb9
commit
866cf119ce
|
@ -38,7 +38,7 @@ msg_ok "Installed Node.js/Yarn"
|
||||||
msg_info "Installing Homarr (Patience)"
|
msg_info "Installing Homarr (Patience)"
|
||||||
mkdir -p /opt/homarr
|
mkdir -p /opt/homarr
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/ajnart/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/ajnart/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
wget -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | tar -xz -C /opt && mv /opt/homarr-${RELEASE} /opt/homarr
|
wget -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | tar -xz -C /opt && mv /opt/homarr-${RELEASE}/* /opt/homarr
|
||||||
cd /opt/homarr
|
cd /opt/homarr
|
||||||
cp -p /opt/homarr/.env.example /opt/homarr/.env
|
cp -p /opt/homarr/.env.example /opt/homarr/.env
|
||||||
sed -i 's|NEXTAUTH_SECRET="[^"]*"|NEXTAUTH_SECRET="'"$(openssl rand -base64 32)"'"|' /opt/homarr/.env
|
sed -i 's|NEXTAUTH_SECRET="[^"]*"|NEXTAUTH_SECRET="'"$(openssl rand -base64 32)"'"|' /opt/homarr/.env
|
||||||
|
|
Loading…
Reference in New Issue