Compare commits

..

No commits in common. "c3f73291a3fc2a0c6fb419986491ce1e692d689d" and "fd5a5fe520794591751788e3b02109246411a84a" have entirely different histories.

16 changed files with 93 additions and 127 deletions

View File

@ -5,12 +5,11 @@ on:
branches:
- main
paths:
- "ct/**.sh"
- 'ct/**.sh'
workflow_dispatch:
jobs:
update-app-files:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
permissions:

View File

@ -7,7 +7,6 @@ on:
jobs:
autolabeler:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
permissions:
pull-requests: write

View File

@ -7,7 +7,7 @@ on:
jobs:
update-changelog-pull-request:
if: github.repository == 'community-scripts/ProxmoxVED'
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: ubuntu-latest
env:
CONFIG_PATH: .github/changelog-pr-config.json

View File

@ -11,7 +11,6 @@ permissions:
jobs:
close-discussion:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
steps:

View File

@ -6,7 +6,6 @@ on:
jobs:
close_tteck_issues:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
steps:
- name: Auto-close if tteck script detected

View File

@ -11,7 +11,7 @@ permissions:
jobs:
post_to_discord:
runs-on: ubuntu-latest
if: contains(github.event.issue.labels.*.name, 'Ready For Testing') && github.repository == 'community-scripts/ProxmoxVED'
if: contains(github.event.issue.labels.*.name, 'Ready For Testing')
steps:
- name: Extract Issue Title (Lowercase & Underscores)
id: extract_title

View File

@ -7,7 +7,6 @@ on:
jobs:
close_discord_thread:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
steps:

View File

@ -7,7 +7,7 @@ on:
jobs:
delete-files:
runs-on: ubuntu-latest
if: contains(github.event.issue.labels.*.name, 'Started Migration To ProxmoxVE') && github.repository == 'community-scripts/ProxmoxVED'
if: contains(github.event.issue.labels.*.name, 'Started Migration To ProxmoxVE')
steps:
- name: Checkout repository
uses: actions/checkout@v4

View File

@ -25,7 +25,6 @@ concurrency:
jobs:
build:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
defaults:
run:
@ -64,7 +63,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main' && github.repository == 'community-scripts/ProxmoxVED'
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write

View File

@ -12,7 +12,6 @@ permissions:
jobs:
crawl-versions:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
steps:

View File

@ -12,7 +12,6 @@ permissions:
jobs:
crawl-versions:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
steps:

View File

@ -14,7 +14,7 @@ permissions:
jobs:
move-to-main-repo:
runs-on: ubuntu-latest
if: github.event.label.name == 'Migration To ProxmoxVE' && github.repository == 'community-scripts/ProxmoxVED'
if: github.event.label.name == 'Migration To ProxmoxVE'
steps:
- name: Generate a token
id: app-token

View File

@ -7,7 +7,6 @@ on:
jobs:
sync:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
steps:
@ -20,7 +19,7 @@ jobs:
run: |
git config --global user.name "Push From Github"
git config --global user.email "actions@github.com"
git remote add gitea https://$GITEA_USER:$GITEA_TOKEN@git.community-scripts.org/community-scripts/ProxmoxVED.git
git remote add gitea http://$GITEA_USER:$GITEA_TOKEN@git.community-scripts.org/community-scripts/ProxmoxVED.git
git push gitea --mirror
env:
GITEA_USER: ${{ secrets.GITEA_USERNAME }}

View File

@ -6,12 +6,11 @@ on:
branches:
- main
paths:
- "install/**.sh"
- "ct/**.sh"
- 'install/**.sh'
- 'ct/**.sh'
jobs:
run-install-script:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: pvenode
steps:
- name: Checkout PR branch
@ -40,6 +39,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get scripts
id: check-install-script
run: |
@ -175,3 +175,5 @@ jobs:
done
echo "ERROR=$ERROR" >> $GITHUB_ENV

View File

@ -31,38 +31,11 @@ function update_script() {
msg_info "Updating ${APP} LXC"
$STD apk -U upgrade
$STD service bitmagnet stop
$STD su - postgres -c "pg_dump \
--column-inserts \
--data-only \
--on-conflict-do-nothing \
--rows-per-insert=1000 \
--table=metadata_sources \
--table=content \
--table=content_attributes \
--table=content_collections \
--table=content_collections_content \
--table=torrent_sources \
--table=torrents \
--table=torrent_files \
--table=torrent_hints \
--table=torrent_contents \
--table=torrent_tags \
--table=torrents_torrent_sources \
--table=key_values \
bitmagnet \
>/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/
rm -rf /opt/bitmagnet/*
temp_file=$(mktemp)
curl -fsSL "https://github.com/bitmagnet-io/bitmagnet/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
tar zxf "$temp_file" --strip-components=1 -C /opt/bitmagnet
cd /opt/bitmagnet
$STD go build
chmod +x bitmagnet
[ -f "/opt/.env" ] && cp "/opt/.env" /opt/bitmagnet/
[ -f "/opt/config.yml" ] && cp "/opt/config.yml" /opt/bitmagnet/
$STD go build -ldflags "-s -w -X github.com/bitmagnet-io/bitmagnet/internal/version.GitTag=$(git describe --tags --always --dirty)"
rm -f "$temp_file"
echo "${RELEASE}" >/opt/bitmagnet_version.txt
$STD service bitmagnet start
@ -81,4 +54,4 @@ description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3333${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"

View File

@ -72,6 +72,6 @@ motd_ssh
customize
msg_info "Cleaning up"
rm -f "$temp_file"
rm -f $temp_file
$STD apk cache clean
msg_ok "Cleaned"