Compare commits

..

6 Commits

Author SHA1 Message Date
tteckster 4efb41620c
Update CHANGELOG.md 2024-04-15 01:01:45 -04:00
tteckster 95573a7285
Update CHANGELOG.md 2024-04-15 00:49:15 -04:00
tteckster a256d4f9b6
Update umbrel-install.sh
tweak
2024-04-15 00:33:25 -04:00
tteckster 42a256ca0e
Update CHANGELOG.md 2024-04-15 00:03:10 -04:00
tteckster 9f8c93a416
Update homarr.sh
modify `function update_script()`
2024-04-14 23:53:59 -04:00
tteckster 02efa7c07a
Update homarr-install.sh
fix install
2024-04-14 23:53:22 -04:00
4 changed files with 29 additions and 20 deletions

View File

@ -10,6 +10,17 @@
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment. - All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
- 🚨 **The scripts in the repository will no longer provide support for Proxmox VE 7 starting from July 2024 (scripts will not execute on PVE7). Subsequent <a href='https://forum.proxmox.com/threads/proxmox-ve-support-lifecycle.35755/' target='_blank' rel='noopener noreferrer'>Proxmox VE - Support Lifecycle</a>** - 🚨 **The scripts in the repository will no longer provide support for Proxmox VE 7 starting from July 2024 (scripts will not execute on PVE7). Subsequent <a href='https://forum.proxmox.com/threads/proxmox-ve-support-lifecycle.35755/' target='_blank' rel='noopener noreferrer'>Proxmox VE - Support Lifecycle</a>**
## 2024-04-15
### Changed
- **Homarr LXC**
- Add back to website
- **Umbrel LXC**
- Add back to website
- **OpenMediaVault LXC**
- Add back to website
## 2024-04-12 ## 2024-04-12
### Changed ### Changed

View File

@ -57,19 +57,15 @@ header_info
if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating $APP (Patience)" msg_info "Updating $APP (Patience)"
systemctl stop homarr systemctl stop homarr
rm -rf /root/data-homarr-backup
rm -rf /root/database-homarr-backup
cp -R /opt/homarr/data /root/data-homarr-backup
cp -R /opt/homarr/database /root/database-homarr-backup
RELEASE=$(curl -s https://api.github.com/repos/ajnart/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
wget -q -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | tar -xz -C /opt
cp -R /opt/homarr-${RELEASE}/* /opt/homarr
cp -R /root/data-homarr-backup/* /opt/homarr/data
cp -R /root/database-homarr-backup/* /opt/homarr/database
rm -rf /opt/homarr-${RELEASE}
cd /opt/homarr cd /opt/homarr
yarn install &>/dev/null if ! git pull; then
yarn build &>/dev/null echo "Already up to date."
systemctl start homarr
echo "No update required."
exit
fi
yarn install
yarn build
systemctl start homarr systemctl start homarr
msg_ok "Updated $APP" msg_ok "Updated $APP"
exit exit

View File

@ -36,13 +36,15 @@ $STD npm install -g yarn
msg_ok "Installed Node.js/Yarn" msg_ok "Installed Node.js/Yarn"
msg_info "Installing Homarr (Patience)" msg_info "Installing Homarr (Patience)"
mkdir -p /opt/homarr $STD git clone -b dev https://github.com/ajnart/homarr.git /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) }') cat <<EOF >/opt/homarr/.env
wget -q -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | $STD tar -xz -C /opt && mv /opt/homarr-${RELEASE}/* /opt/homarr DATABASE_URL="file:./database/db.sqlite"
rm -rf /opt/homarr-${RELEASE} NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="$(openssl rand -base64 32)"
NEXT_PUBLIC_DISABLE_ANALYTICS="true"
DEFAULT_COLOR_SCHEME="dark"
EOF
cd /opt/homarr cd /opt/homarr
wget -q -O /opt/homarr/.env https://raw.githubusercontent.com/ajnart/homarr/dev/.env.example
sed -i 's|NEXTAUTH_SECRET="[^"]*"|NEXTAUTH_SECRET="'"$(openssl rand -base64 32)"'"|' /opt/homarr/.env
$STD yarn install $STD yarn install
$STD yarn build $STD yarn build
$STD yarn db:migrate $STD yarn db:migrate

View File

@ -32,6 +32,6 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get autoremove #$STD apt-get autoremove
$STD apt-get autoclean #$STD apt-get autoclean
msg_ok "Cleaned" msg_ok "Cleaned"