Update Bitmagnet

This commit is contained in:
tremor021 2025-05-13 15:42:16 +02:00
parent f66a6344a1
commit 432558da5c
2 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ function update_script() {
msg_info "Updating ${APP} LXC"
$STD apk -U upgrade
$STD service bitmagnet stop
$STD su - postgres -c "pg_dump \
$STD sudo -u postgres pg_dump \
--column-inserts \
--data-only \
--on-conflict-do-nothing \
@ -50,7 +50,7 @@ function update_script() {
--table=torrents_torrent_sources \
--table=key_values \
bitmagnet \
>/tmp/backup.sql"
>/tmp/backup.sql
mv /tmp/backup.sql /opt/
[ -f /opt/bitmagnet/.env ] && cp /opt/bitmagnet/.env /opt/
[ -f /opt/bitmagnet/config.yml ] && cp /opt/bitmagnet/config.yml /opt/

View File

@ -18,7 +18,8 @@ $STD apk add --no-cache \
gcc \
musl-dev \
git \
iproute2-ss
iproute2-ss \
sudo
$STD apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community go
msg_ok "Installed dependencies"