mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-02 13:49:35 +02:00
Compare commits
1 Commits
main
...
fix/npm-ce
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2af5c2941c |
18
.github/workflows/check-node-versions.yml
generated
vendored
18
.github/workflows/check-node-versions.yml
generated
vendored
@@ -336,18 +336,14 @@ jobs:
|
|||||||
issue_scripts+=("$slug|$our_version|$upstream_major|$upstream_hint|$repo")
|
issue_scripts+=("$slug|$our_version|$upstream_major|$upstream_hint|$repo")
|
||||||
drift_count=$((drift_count + 1))
|
drift_count=$((drift_count + 1))
|
||||||
elif [[ -n "$upstream_major" && "$our_version" != "$upstream_major" ]]; then
|
elif [[ -n "$upstream_major" && "$our_version" != "$upstream_major" ]]; then
|
||||||
if (( our_version < upstream_major )); then
|
# Check if engines.node is a minimum constraint that our version satisfies
|
||||||
# Check if engines.node is a minimum constraint that our version satisfies
|
if [[ -z "$DF_NODE_MAJOR" && "$ENGINES_IS_MINIMUM" == "true" ]] && \
|
||||||
if [[ -z "$DF_NODE_MAJOR" && "$ENGINES_IS_MINIMUM" == "true" ]] && \
|
version_satisfies_engines "$our_version" "$ENGINES_MIN_MAJOR" "$ENGINES_IS_MINIMUM"; then
|
||||||
version_satisfies_engines "$our_version" "$ENGINES_MIN_MAJOR" "$ENGINES_IS_MINIMUM"; then
|
status="✅ (engines: $ENGINES_NODE_RAW — ours: $our_version satisfies)"
|
||||||
status="✅ (engines: $ENGINES_NODE_RAW — ours: $our_version satisfies)"
|
|
||||||
else
|
|
||||||
status="🔸 Drift → upstream=$upstream_major ($upstream_hint)"
|
|
||||||
issue_scripts+=("$slug|$our_version|$upstream_major|$upstream_hint|$repo")
|
|
||||||
drift_count=$((drift_count + 1))
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
status="✅ Ahead of upstream ($upstream_major via $upstream_hint)"
|
status="🔸 Drift → upstream=$upstream_major ($upstream_hint)"
|
||||||
|
issue_scripts+=("$slug|$our_version|$upstream_major|$upstream_hint|$repo")
|
||||||
|
drift_count=$((drift_count + 1))
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
63
.github/workflows/close-new-script-prs.yml
generated
vendored
63
.github/workflows/close-new-script-prs.yml
generated
vendored
@@ -3,7 +3,7 @@ name: Close Unauthorized New Script PRs
|
|||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
types: [opened, labeled, reopened, synchronize]
|
types: [opened, labeled]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-new-script:
|
check-new-script:
|
||||||
@@ -24,6 +24,13 @@ jobs:
|
|||||||
const owner = context.repo.owner;
|
const owner = context.repo.owner;
|
||||||
const repo = context.repo.repo;
|
const repo = context.repo.repo;
|
||||||
|
|
||||||
|
// --- Only act on PRs with the "new script" label ---
|
||||||
|
const labels = pr.labels.map(l => l.name);
|
||||||
|
if (!labels.includes("new script")) {
|
||||||
|
core.info(`PR #${prNumber} does not have "new script" label — skipping.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// --- Allow our bots ---
|
// --- Allow our bots ---
|
||||||
const allowedBots = [
|
const allowedBots = [
|
||||||
"push-app-to-main[bot]",
|
"push-app-to-main[bot]",
|
||||||
@@ -35,40 +42,38 @@ jobs:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Exempt contributors via author_association ---
|
// --- Check if author is a member of the contributor team ---
|
||||||
// OWNER/MEMBER/COLLABORATOR are trusted; CONTRIBUTOR ("has merged before")
|
const teamSlug = "contributor";
|
||||||
// and NONE are not — their new-script PRs are still closed.
|
let isMember = false;
|
||||||
const association = pr.author_association;
|
|
||||||
const exempt = ["OWNER", "MEMBER", "COLLABORATOR"];
|
|
||||||
if (exempt.includes(association)) {
|
|
||||||
core.info(`PR #${prNumber} by ${association} "${author}" — skipping.`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// --- Detect a new-script PR: "new script" label OR a newly-added
|
|
||||||
// script file under ct/ install/ turnkey/ vm/ (mirrors
|
|
||||||
// autolabeler-config.json). Removes the label-timing dependency. ---
|
|
||||||
const labels = pr.labels.map(l => l.name);
|
|
||||||
const hasNewScriptLabel = labels.includes("new script");
|
|
||||||
|
|
||||||
const scriptPrefixes = ["ct/", "install/", "turnkey/", "vm/"];
|
|
||||||
let hasAddedScriptFile = false;
|
|
||||||
try {
|
try {
|
||||||
const files = await github.paginate(github.rest.pulls.listFiles, {
|
const { status } = await github.rest.teams.getMembershipForUserInOrg({
|
||||||
owner,
|
org: owner,
|
||||||
repo,
|
team_slug: teamSlug,
|
||||||
pull_number: prNumber,
|
username: author,
|
||||||
per_page: 100,
|
|
||||||
});
|
});
|
||||||
hasAddedScriptFile = files.some(
|
// status 200 means the user is a member (active or pending)
|
||||||
f => f.status === "added" && scriptPrefixes.some(p => f.filename.startsWith(p))
|
isMember = true;
|
||||||
);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.warning(`Could not list files for PR #${prNumber}: ${error.message}`);
|
if (error.status === 404) {
|
||||||
|
isMember = false;
|
||||||
|
} else {
|
||||||
|
core.warning(`Could not check team membership for ${author}: ${error.message}`);
|
||||||
|
// Fallback: check org membership
|
||||||
|
try {
|
||||||
|
await github.rest.orgs.checkMembershipForUser({
|
||||||
|
org: owner,
|
||||||
|
username: author,
|
||||||
|
});
|
||||||
|
isMember = true;
|
||||||
|
} catch {
|
||||||
|
isMember = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasNewScriptLabel && !hasAddedScriptFile) {
|
if (isMember) {
|
||||||
core.info(`PR #${prNumber} is not a new-script submission (no label, no added script file) — skipping.`);
|
core.info(`PR #${prNumber} by contributor "${author}" — skipping.`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
61
.github/workflows/close_issue_in_dev.yaml
generated
vendored
61
.github/workflows/close_issue_in_dev.yaml
generated
vendored
@@ -56,57 +56,46 @@ jobs:
|
|||||||
echo "$slugs" > pocketbase_slugs.txt
|
echo "$slugs" > pocketbase_slugs.txt
|
||||||
echo "count=$(echo $slugs | wc -w)" >> "$GITHUB_OUTPUT"
|
echo "count=$(echo $slugs | wc -w)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Find matching issues in ProxmoxVED by slug
|
- name: Search for Issues with Similar Titles
|
||||||
id: find_issue
|
id: find_issue
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -s pocketbase_slugs.txt ]]; then
|
issues=$(gh issue list --repo community-scripts/ProxmoxVED --json number,title --jq '.[] | {number, title}')
|
||||||
echo "No slugs derived from PR — nothing to match."
|
|
||||||
echo "issue_numbers=" >> "$GITHUB_OUTPUT"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
slugs=$(cat pocketbase_slugs.txt)
|
|
||||||
|
|
||||||
# Normalize: lowercase, strip spaces and hyphens (same shape as the slug derivation)
|
best_match_score=0
|
||||||
norm() { echo "$1" | tr '[:upper:]' '[:lower:]' | sed 's/[[:space:]]//g; s/-//g'; }
|
best_match_number=0
|
||||||
|
|
||||||
issues=$(gh issue list --repo community-scripts/ProxmoxVED --state open --limit 1000 --json number,title,body)
|
for issue in $(echo "$issues" | jq -r '. | @base64'); do
|
||||||
|
_jq() {
|
||||||
|
echo ${issue} | base64 --decode | jq -r ${1}
|
||||||
|
}
|
||||||
|
|
||||||
matched=""
|
issue_title=$(_jq '.title' | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sed 's/-//g')
|
||||||
for slug in $slugs; do
|
issue_number=$(_jq '.number')
|
||||||
nslug=$(norm "$slug")
|
|
||||||
[[ -z "$nslug" ]] && continue
|
match_score=$(echo "$title" | grep -o "$issue_title" | wc -l)
|
||||||
while IFS= read -r row; do
|
|
||||||
num=$(echo "$row" | jq -r '.number')
|
if [ "$match_score" -gt "$best_match_score" ]; then
|
||||||
ntitle=$(norm "$(echo "$row" | jq -r '.title')")
|
best_match_score=$match_score
|
||||||
body=$(echo "$row" | jq -r '.body // ""' | tr '[:upper:]' '[:lower:]')
|
best_match_number=$issue_number
|
||||||
# Match when the issue title contains the slug, or the body mentions it verbatim
|
fi
|
||||||
if [[ "$ntitle" == *"$nslug"* ]] || [[ "$body" == *"$slug"* ]]; then
|
|
||||||
matched="$matched $num"
|
|
||||||
fi
|
|
||||||
done < <(echo "$issues" | jq -c '.[]')
|
|
||||||
done
|
done
|
||||||
|
|
||||||
matched=$(echo $matched | xargs -n1 2>/dev/null | sort -un | tr '\n' ' ')
|
if [ "$best_match_number" != "0" ]; then
|
||||||
if [[ -z "$matched" ]]; then
|
echo "issue_number=$best_match_number" >> $GITHUB_ENV
|
||||||
echo "No matching ProxmoxVED issues found for slugs: $slugs"
|
else
|
||||||
echo "issue_numbers=" >> "$GITHUB_OUTPUT"
|
echo "No matching issue found."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "Matched ProxmoxVED issues: $matched"
|
|
||||||
echo "issue_numbers=$matched" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Comment on and close matching ProxmoxVED issues
|
- name: Comment on the Best-Matching Issue and Close It
|
||||||
if: steps.find_issue.outputs.issue_numbers != ''
|
if: env.issue_number != ''
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.PAT_MICHEL }}
|
GH_TOKEN: ${{ secrets.PAT_MICHEL }}
|
||||||
run: |
|
run: |
|
||||||
for issue_number in ${{ steps.find_issue.outputs.issue_numbers }}; do
|
gh issue comment $issue_number --repo community-scripts/ProxmoxVED --body "Merged with #${{ github.event.pull_request.number }} in ProxmoxVE"
|
||||||
echo "Closing ProxmoxVED issue #$issue_number"
|
gh issue close $issue_number --repo community-scripts/ProxmoxVED
|
||||||
gh issue comment "$issue_number" --repo community-scripts/ProxmoxVED --body "Merged with #${{ github.event.pull_request.number }} in ProxmoxVE"
|
|
||||||
gh issue close "$issue_number" --repo community-scripts/ProxmoxVED
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Set is_dev to false in PocketBase
|
- name: Set is_dev to false in PocketBase
|
||||||
if: steps.get_slugs.outputs.count != '0'
|
if: steps.get_slugs.outputs.count != '0'
|
||||||
|
|||||||
4
.github/workflows/lock-issue.yaml
generated
vendored
4
.github/workflows/lock-issue.yaml
generated
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const daysBeforeLock = 7;
|
const daysBeforeLock = 3;
|
||||||
const lockDate = new Date();
|
const lockDate = new Date();
|
||||||
lockDate.setDate(lockDate.getDate() - daysBeforeLock);
|
lockDate.setDate(lockDate.getDate() - daysBeforeLock);
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
/dependabot/i
|
/dependabot/i
|
||||||
];
|
];
|
||||||
|
|
||||||
// Search for closed, unlocked issues older than 7 days (paginated, oldest first)
|
// Search for closed, unlocked issues older than 3 days (paginated, oldest first)
|
||||||
let page = 1;
|
let page = 1;
|
||||||
let totalLocked = 0;
|
let totalLocked = 0;
|
||||||
|
|
||||||
|
|||||||
24
.github/workflows/pocketbase-bot.yml
generated
vendored
24
.github/workflows/pocketbase-bot.yml
generated
vendored
@@ -13,8 +13,8 @@ jobs:
|
|||||||
pocketbase-bot:
|
pocketbase-bot:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
||||||
# Act on comments that contain a /pocketbase command line (precise line check happens in-script)
|
# Only act on /pocketbase commands
|
||||||
if: contains(github.event.comment.body, '/pocketbase')
|
if: startsWith(github.event.comment.body, '/pocketbase')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Execute PocketBase bot command
|
- name: Execute PocketBase bot command
|
||||||
@@ -257,22 +257,6 @@ jobs:
|
|||||||
if (!res.ok) console.warn('Could not post comment:', res.body);
|
if (!res.ok) console.warn('Could not post comment:', res.body);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Locate the command line ────────────────────────────────────────
|
|
||||||
// Accept /pocketbase at the start of ANY line (leading whitespace ok),
|
|
||||||
// so the command works even when preceded by other text. Mid-sentence
|
|
||||||
// mentions and blockquoted ("> ...") examples are ignored.
|
|
||||||
const commentBody = process.env.COMMENT_BODY || '';
|
|
||||||
const cmdLine = commentBody
|
|
||||||
.split('\n')
|
|
||||||
.map(l => l.trim())
|
|
||||||
.find(l => l.startsWith('/pocketbase'));
|
|
||||||
|
|
||||||
if (!cmdLine) {
|
|
||||||
console.log('No /pocketbase command line found — ignoring comment.');
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
const withoutCmd = cmdLine.replace(/^\/pocketbase\s*/, '').trim();
|
|
||||||
|
|
||||||
// ── Permission check ───────────────────────────────────────────────
|
// ── Permission check ───────────────────────────────────────────────
|
||||||
const association = process.env.ACTOR_ASSOCIATION;
|
const association = process.env.ACTOR_ASSOCIATION;
|
||||||
if (association !== 'OWNER' && association !== 'MEMBER') {
|
if (association !== 'OWNER' && association !== 'MEMBER') {
|
||||||
@@ -288,6 +272,10 @@ jobs:
|
|||||||
await addReaction('eyes');
|
await addReaction('eyes');
|
||||||
|
|
||||||
// ── Parse command ──────────────────────────────────────────────────
|
// ── Parse command ──────────────────────────────────────────────────
|
||||||
|
const commentBody = process.env.COMMENT_BODY || '';
|
||||||
|
const lines = commentBody.trim().split('\n');
|
||||||
|
const firstLine = lines[0].trim();
|
||||||
|
const withoutCmd = firstLine.replace(/^\/pocketbase\s+/, '').trim();
|
||||||
|
|
||||||
function extractCodeBlock(body) {
|
function extractCodeBlock(body) {
|
||||||
const m = body.match(/```[^\n]*\n([\s\S]*?)```/);
|
const m = body.match(/```[^\n]*\n([\s\S]*?)```/);
|
||||||
|
|||||||
44
CHANGELOG.md
44
CHANGELOG.md
@@ -470,52 +470,8 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 2026-06-02
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- infisical: fix update abort due to creds field mismatch (#14868) [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14870](https://github.com/community-scripts/ProxmoxVE/pull/14870))
|
|
||||||
|
|
||||||
- #### ✨ New Features
|
|
||||||
|
|
||||||
- feat(degoog): enable default valkey cache integration [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14871](https://github.com/community-scripts/ProxmoxVE/pull/14871))
|
|
||||||
|
|
||||||
- #### 🔧 Refactor
|
|
||||||
|
|
||||||
- chore: bump Node version in selected scripts [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14873](https://github.com/community-scripts/ProxmoxVE/pull/14873))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- #### ✨ New Features
|
|
||||||
|
|
||||||
- tools.func: add support for Rust installation profile in setup_rust [@MickLesk](https://github.com/MickLesk) ([#14872](https://github.com/community-scripts/ProxmoxVE/pull/14872))
|
|
||||||
|
|
||||||
### 📂 Github
|
|
||||||
|
|
||||||
- fix(workflow): only flag node drift when local is behind upstream [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14874](https://github.com/community-scripts/ProxmoxVE/pull/14874))
|
|
||||||
|
|
||||||
## 2026-06-01
|
## 2026-06-01
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- fix(dispatcharr): forward nginx port for M3U URLs on new installs [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14862](https://github.com/community-scripts/ProxmoxVE/pull/14862))
|
|
||||||
- Set environment paths in service for apprise-api-install.sh [@SystemIdleProcess](https://github.com/SystemIdleProcess) ([#14805](https://github.com/community-scripts/ProxmoxVE/pull/14805))
|
|
||||||
- fix(fireshare): rebuild client on update to fix nginx 500 [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14848](https://github.com/community-scripts/ProxmoxVE/pull/14848))
|
|
||||||
- Fix Kan build failure (TS7016 nodemailer) [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14856](https://github.com/community-scripts/ProxmoxVE/pull/14856))
|
|
||||||
- fix(firefly): set Data Importer APP_URL for subdirectory install [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14847](https://github.com/community-scripts/ProxmoxVE/pull/14847))
|
|
||||||
- kan: extend fetch_and_deploy_gh_tag to use 'latest' tag [@MickLesk](https://github.com/MickLesk) ([#14853](https://github.com/community-scripts/ProxmoxVE/pull/14853))
|
|
||||||
- Glance: preserve glance.yml across updates [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#14845](https://github.com/community-scripts/ProxmoxVE/pull/14845))
|
|
||||||
- NginxProxymanager: set Certbot version in npm.service environment variable (2.15.0) [@MickLesk](https://github.com/MickLesk) ([#14843](https://github.com/community-scripts/ProxmoxVE/pull/14843))
|
|
||||||
- [FileFlows] Fix service handling by using systemctl --all with quoted glob [@adrianmusante](https://github.com/adrianmusante) ([#14838](https://github.com/community-scripts/ProxmoxVE/pull/14838))
|
|
||||||
|
|
||||||
- #### ✨ New Features
|
|
||||||
|
|
||||||
- Kometa: also update Quickstart in update_script [@MickLesk](https://github.com/MickLesk) ([#14529](https://github.com/community-scripts/ProxmoxVE/pull/14529))
|
|
||||||
|
|
||||||
## 2026-05-31
|
## 2026-05-31
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ function update_script() {
|
|||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
|
|
||||||
NODE_VERSION="26" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
ensure_dependencies build-essential
|
ensure_dependencies build-essential
|
||||||
|
|
||||||
if command -v cross-seed &>/dev/null; then
|
if command -v cross-seed &>/dev/null; then
|
||||||
|
|||||||
10
ct/degoog.sh
10
ct/degoog.sh
@@ -49,21 +49,11 @@ function update_script() {
|
|||||||
msg_ok "Installed Bun"
|
msg_ok "Installed Bun"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Updating Valkey"
|
|
||||||
ensure_dependencies valkey
|
|
||||||
msg_ok "Updated Valkey"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "degoog" "fccview/degoog" "prebuild" "latest" "/opt/degoog" "degoog_*_prebuild.tar.gz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "degoog" "fccview/degoog" "prebuild" "latest" "/opt/degoog" "degoog_*_prebuild.tar.gz"
|
||||||
|
|
||||||
msg_info "Restoring Configuration & Data"
|
msg_info "Restoring Configuration & Data"
|
||||||
[[ -f /opt/degoog.env.bak ]] && mv /opt/degoog.env.bak /opt/degoog/.env
|
[[ -f /opt/degoog.env.bak ]] && mv /opt/degoog.env.bak /opt/degoog/.env
|
||||||
[[ -d /opt/degoog_data_backup ]] && mv /opt/degoog_data_backup /opt/degoog/data
|
[[ -d /opt/degoog_data_backup ]] && mv /opt/degoog_data_backup /opt/degoog/data
|
||||||
|
|
||||||
if [[ -f /opt/degoog/.env ]]; then
|
|
||||||
grep -q "^DEGOOG_VALKEY_URL=" /opt/degoog/.env && sed -i "s|^DEGOOG_VALKEY_URL=.*|DEGOOG_VALKEY_URL=redis://valkey:6379|" /opt/degoog/.env || echo "DEGOOG_VALKEY_URL=redis://valkey:6379" >>/opt/degoog/.env
|
|
||||||
grep -q "^DEGOOG_CACHE_MAX_ENTRIES=" /opt/degoog/.env && sed -i "s|^DEGOOG_CACHE_MAX_ENTRIES=.*|DEGOOG_CACHE_MAX_ENTRIES=1000|" /opt/degoog/.env || echo "DEGOOG_CACHE_MAX_ENTRIES=1000" >>/opt/degoog/.env
|
|
||||||
grep -q "^DEGOOG_CACHE_TTL_MS=" /opt/degoog/.env && sed -i "s|^DEGOOG_CACHE_TTL_MS=.*|DEGOOG_CACHE_TTL_MS=43200000|" /opt/degoog/.env || echo "DEGOOG_CACHE_TTL_MS=43200000" >>/opt/degoog/.env
|
|
||||||
fi
|
|
||||||
msg_ok "Restored Configuration & Data"
|
msg_ok "Restored Configuration & Data"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ function update_script() {
|
|||||||
update_available=$(curl -fsSL -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable)
|
update_available=$(curl -fsSL -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable)
|
||||||
if [[ "${update_available}" == "true" ]]; then
|
if [[ "${update_available}" == "true" ]]; then
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl --all stop 'fileflows*'
|
systemctl stop fileflows*
|
||||||
msg_info "Stopped Service"
|
msg_info "Stopped Service"
|
||||||
|
|
||||||
msg_info "Creating Backup"
|
msg_info "Creating Backup"
|
||||||
@@ -46,7 +46,7 @@ function update_script() {
|
|||||||
fetch_and_deploy_from_url "https://fileflows.com/downloads/zip" "/opt/fileflows"
|
fetch_and_deploy_from_url "https://fileflows.com/downloads/zip" "/opt/fileflows"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl --all start 'fileflows*'
|
systemctl start fileflows*
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -53,12 +53,6 @@ function update_script() {
|
|||||||
export VIDEO_DIRECTORY=/opt/fireshare-videos
|
export VIDEO_DIRECTORY=/opt/fireshare-videos
|
||||||
export PROCESSED_DIRECTORY=/opt/fireshare-processed
|
export PROCESSED_DIRECTORY=/opt/fireshare-processed
|
||||||
$STD uv run flask db upgrade
|
$STD uv run flask db upgrade
|
||||||
|
|
||||||
msg_info "Building Fireshare Client"
|
|
||||||
cd /opt/fireshare/app/client
|
|
||||||
$STD npm install
|
|
||||||
$STD npm run build
|
|
||||||
msg_ok "Built Fireshare Client"
|
|
||||||
msg_ok "Updated Fireshare"
|
msg_ok "Updated Fireshare"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
12
ct/glance.sh
12
ct/glance.sh
@@ -34,20 +34,8 @@ function update_script() {
|
|||||||
systemctl stop glance
|
systemctl stop glance
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
if [[ -f /opt/glance/glance.yml ]]; then
|
|
||||||
msg_info "Backing up glance.yml"
|
|
||||||
cp /opt/glance/glance.yml /tmp/glance.yml.bak
|
|
||||||
msg_ok "Backed up glance.yml"
|
|
||||||
fi
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "glance" "glanceapp/glance" "prebuild" "latest" "/opt/glance" "glance-linux-amd64.tar.gz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "glance" "glanceapp/glance" "prebuild" "latest" "/opt/glance" "glance-linux-amd64.tar.gz"
|
||||||
|
|
||||||
if [[ -f /tmp/glance.yml.bak ]]; then
|
|
||||||
msg_info "Restoring glance.yml"
|
|
||||||
mv /tmp/glance.yml.bak /opt/glance/glance.yml
|
|
||||||
msg_ok "Restored glance.yml"
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start glance
|
systemctl start glance
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Creating backup"
|
msg_info "Creating backup"
|
||||||
[[ -f /opt/infisical_backup.sql ]] && rm -f /opt/infisical_backup.sql
|
[[ -f /opt/infisical_backup.sql ]] && rm -f /opt/infisical_backup.sql
|
||||||
DB_PASS=$(grep -Po '(?<=^Password:\s).*' ~/infisical.creds | head -n1)
|
DB_PASS=$(grep -Po '(?<=^Database Password:\s).*' ~/infisical.creds | head -n1)
|
||||||
PGPASSWORD=$DB_PASS pg_dump -U infisical -h localhost -d infisical_db > /opt/infisical_backup.sql
|
PGPASSWORD=$DB_PASS pg_dump -U infisical -h localhost -d infisical_db > /opt/infisical_backup.sql
|
||||||
msg_ok "Created backup"
|
msg_ok "Created backup"
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function update_script() {
|
|||||||
cp /opt/kan/.env /opt/kan.env.bak
|
cp /opt/kan/.env /opt/kan.env.bak
|
||||||
msg_ok "Backed up Data"
|
msg_ok "Backed up Data"
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "kan" "kanbn/kan" "tarball"
|
||||||
|
|
||||||
msg_info "Restoring Configuration"
|
msg_info "Restoring Configuration"
|
||||||
cp /opt/kan.env.bak /opt/kan/.env
|
cp /opt/kan.env.bak /opt/kan/.env
|
||||||
@@ -49,10 +49,8 @@ function update_script() {
|
|||||||
msg_info "Building Application"
|
msg_info "Building Application"
|
||||||
cd /opt/kan
|
cd /opt/kan
|
||||||
set -a && source /opt/kan/.env && set +a
|
set -a && source /opt/kan/.env && set +a
|
||||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true
|
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true CI=true
|
||||||
$STD pnpm install --ignore-scripts --prod=false
|
$STD pnpm install
|
||||||
export CI=true
|
|
||||||
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
|
|
||||||
$STD pnpm build --filter=@kan/web
|
$STD pnpm build --filter=@kan/web
|
||||||
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
||||||
msg_ok "Built Application"
|
msg_ok "Built Application"
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ function update_script() {
|
|||||||
[[ -s /opt/koillection/.env.local && -n "$(tail -c 1 /opt/koillection/.env.local)" ]] && echo "" >>/opt/koillection/.env.local
|
[[ -s /opt/koillection/.env.local && -n "$(tail -c 1 /opt/koillection/.env.local)" ]] && echo "" >>/opt/koillection/.env.local
|
||||||
echo 'APP_RUNTIME="Symfony\Component\Runtime\SymfonyRuntime"' >>/opt/koillection/.env.local
|
echo 'APP_RUNTIME="Symfony\Component\Runtime\SymfonyRuntime"' >>/opt/koillection/.env.local
|
||||||
fi
|
fi
|
||||||
NODE_VERSION="26" NODE_MODULE="yarn" setup_nodejs
|
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
export COMPOSER_ALLOW_SUPERUSER=1
|
||||||
export APP_RUNTIME='Symfony\Component\Runtime\SymfonyRuntime'
|
export APP_RUNTIME='Symfony\Component\Runtime\SymfonyRuntime'
|
||||||
$STD composer install --no-dev -o --no-interaction --classmap-authoritative
|
$STD composer install --no-dev -o --no-interaction --classmap-authoritative
|
||||||
|
|||||||
20
ct/kometa.sh
20
ct/kometa.sh
@@ -32,7 +32,6 @@ function update_script() {
|
|||||||
if check_for_gh_release "kometa" "Kometa-Team/Kometa"; then
|
if check_for_gh_release "kometa" "Kometa-Team/Kometa"; then
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop kometa
|
systemctl stop kometa
|
||||||
[[ -d "/opt/kometa-quickstart" ]] && systemctl stop kometa-quickstart
|
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
msg_info "Backing up data"
|
msg_info "Backing up data"
|
||||||
@@ -51,28 +50,9 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start kometa
|
systemctl start kometa
|
||||||
[[ -d "/opt/kometa-quickstart" ]] && systemctl start kometa-quickstart
|
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d "/opt/kometa-quickstart" ]] && check_for_gh_release "kometa-quickstart" "Kometa-Team/Quickstart"; then
|
|
||||||
msg_info "Stopping Quickstart Service"
|
|
||||||
systemctl stop kometa-quickstart
|
|
||||||
msg_ok "Stopped Quickstart Service"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "kometa-quickstart" "Kometa-Team/Quickstart" "tarball"
|
|
||||||
|
|
||||||
msg_info "Updating Kometa Quickstart"
|
|
||||||
cd /opt/kometa-quickstart
|
|
||||||
$STD uv pip install -r requirements.txt -p /opt/kometa-quickstart/.venv/bin/python
|
|
||||||
msg_ok "Updated Kometa Quickstart"
|
|
||||||
|
|
||||||
msg_info "Starting Quickstart Service"
|
|
||||||
systemctl start kometa-quickstart
|
|
||||||
msg_ok "Started Quickstart Service"
|
|
||||||
msg_ok "Updated Quickstart successfully!"
|
|
||||||
fi
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ function update_script() {
|
|||||||
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "musicseerr" "HabiRabbu/Musicseerr" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "musicseerr" "HabiRabbu/Musicseerr" "tarball"
|
||||||
NODE_VERSION="25" NODE_MODULE="pnpm@10.33.0" setup_nodejs
|
NODE_VERSION="22" NODE_MODULE="pnpm@10.33.0" setup_nodejs
|
||||||
|
|
||||||
msg_info "Building Frontend"
|
msg_info "Building Frontend"
|
||||||
cd /opt/musicseerr/frontend
|
cd /opt/musicseerr/frontend
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
if check_for_gh_release "soulsync" "Nezreka/SoulSync"; then
|
if check_for_gh_release "soulsync" "Nezreka/SoulSync"; then
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
|
|||||||
@@ -52,9 +52,6 @@ After=network-online.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/opt/apprise
|
WorkingDirectory=/opt/apprise
|
||||||
ExecStart=/opt/apprise/webapp/supervisord-startup
|
ExecStart=/opt/apprise/webapp/supervisord-startup
|
||||||
Environment=APPRISE_CONFIG_DIR=/config
|
|
||||||
Environment=APPRISE_ATTACH_DIR=/attach
|
|
||||||
Environment=APPRISE_PLUGIN_PATHS=/plugin
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=30
|
RestartSec=30
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
|
|||||||
$STD apt install -y build-essential
|
$STD apt install -y build-essential
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="26" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
|
||||||
msg_info "Setup Cross-Seed"
|
msg_info "Setup Cross-Seed"
|
||||||
$STD npm install cross-seed@latest -g
|
$STD npm install cross-seed@latest -g
|
||||||
|
|||||||
@@ -16,8 +16,7 @@ update_os
|
|||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt install -y \
|
$STD apt install -y \
|
||||||
git \
|
git \
|
||||||
unzip \
|
unzip
|
||||||
valkey
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Bun"
|
msg_info "Installing Bun"
|
||||||
@@ -39,9 +38,6 @@ DEGOOG_PLUGINS_DIR=/opt/degoog/data/plugins
|
|||||||
DEGOOG_THEMES_DIR=/opt/degoog/data/themes
|
DEGOOG_THEMES_DIR=/opt/degoog/data/themes
|
||||||
DEGOOG_ALIASES_FILE=/opt/degoog/data/aliases.json
|
DEGOOG_ALIASES_FILE=/opt/degoog/data/aliases.json
|
||||||
DEGOOG_PLUGIN_SETTINGS_FILE=/opt/degoog/data/plugin-settings.json
|
DEGOOG_PLUGIN_SETTINGS_FILE=/opt/degoog/data/plugin-settings.json
|
||||||
DEGOOG_VALKEY_URL=redis://valkey:6379
|
|
||||||
DEGOOG_CACHE_MAX_ENTRIES=1000
|
|
||||||
DEGOOG_CACHE_TTL_MS=43200000
|
|
||||||
# DEGOOG_SETTINGS_PASSWORDS=changeme
|
# DEGOOG_SETTINGS_PASSWORDS=changeme
|
||||||
# DEGOOG_PUBLIC_INSTANCE=false
|
# DEGOOG_PUBLIC_INSTANCE=false
|
||||||
# LOGGER=debug
|
# LOGGER=debug
|
||||||
@@ -66,16 +62,11 @@ EOF
|
|||||||
fi
|
fi
|
||||||
msg_ok "Set up degoog"
|
msg_ok "Set up degoog"
|
||||||
|
|
||||||
msg_info "Starting Valkey Service"
|
|
||||||
systemctl enable -q --now valkey-server
|
|
||||||
msg_ok "Started Valkey Service"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/degoog.service
|
cat <<EOF >/etc/systemd/system/degoog.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=degoog
|
Description=degoog
|
||||||
After=network.target valkey-server.service
|
After=network.target
|
||||||
Wants=valkey-server.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ server {
|
|||||||
# All other requests proxy to uWSGI
|
# All other requests proxy to uWSGI
|
||||||
location / {
|
location / {
|
||||||
include proxy_params;
|
include proxy_params;
|
||||||
proxy_set_header X-Forwarded-Port \$server_port;
|
|
||||||
proxy_pass http://127.0.0.1:5656;
|
proxy_pass http://127.0.0.1:5656;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,13 +37,7 @@ msg_ok "Configured Firefly III"
|
|||||||
|
|
||||||
msg_info "Configuring Data Importer"
|
msg_info "Configuring Data Importer"
|
||||||
cp /opt/firefly/dataimporter/.env.example /opt/firefly/dataimporter/.env
|
cp /opt/firefly/dataimporter/.env.example /opt/firefly/dataimporter/.env
|
||||||
sed -i \
|
sed -i "s#FIREFLY_III_URL=#FIREFLY_III_URL=http://${LOCAL_IP}#g" /opt/firefly/dataimporter/.env
|
||||||
-e "s#FIREFLY_III_URL=#FIREFLY_III_URL=http://${LOCAL_IP}#g" \
|
|
||||||
-e "s|^APP_URL=.*|APP_URL=http://${LOCAL_IP}/dataimporter|" \
|
|
||||||
-e "s|^ASSET_URL=.*|ASSET_URL=/dataimporter|" \
|
|
||||||
/opt/firefly/dataimporter/.env
|
|
||||||
cd /opt/firefly/dataimporter
|
|
||||||
$STD php artisan config:clear
|
|
||||||
chown -R www-data:www-data /opt/firefly
|
chown -R www-data:www-data /opt/firefly
|
||||||
msg_ok "Configured Data Importer"
|
msg_ok "Configured Data Importer"
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ PG_VERSION="16" setup_postgresql
|
|||||||
PG_DB_NAME="kan" PG_DB_USER="kan" setup_postgresql_db
|
PG_DB_NAME="kan" PG_DB_USER="kan" setup_postgresql_db
|
||||||
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
||||||
|
|
||||||
fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest"
|
fetch_and_deploy_gh_tag "kan" "kanbn/kan" "tarball"
|
||||||
|
|
||||||
msg_info "Configuring Application"
|
msg_info "Configuring Application"
|
||||||
AUTH_SECRET=$(openssl rand -base64 32)
|
AUTH_SECRET=$(openssl rand -base64 32)
|
||||||
@@ -45,9 +45,8 @@ msg_info "Building Application"
|
|||||||
cd /opt/kan
|
cd /opt/kan
|
||||||
set -a && source /opt/kan/.env && set +a
|
set -a && source /opt/kan/.env && set +a
|
||||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true NEXT_PUBLIC_BASE_URL BETTER_AUTH_TRUSTED_ORIGINS NEXT_PUBLIC_ALLOW_CREDENTIALS BETTER_AUTH_SECRET
|
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true NEXT_PUBLIC_BASE_URL BETTER_AUTH_TRUSTED_ORIGINS NEXT_PUBLIC_ALLOW_CREDENTIALS BETTER_AUTH_SECRET
|
||||||
$STD pnpm install --ignore-scripts --prod=false
|
|
||||||
export CI=true
|
export CI=true
|
||||||
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
|
$STD pnpm install
|
||||||
$STD pnpm build --filter=@kan/web
|
$STD pnpm build --filter=@kan/web
|
||||||
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
||||||
msg_ok "Built Application"
|
msg_ok "Built Application"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
NODE_VERSION="26" NODE_MODULE="yarn" setup_nodejs
|
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
|
||||||
PG_VERSION="16" setup_postgresql
|
PG_VERSION="16" setup_postgresql
|
||||||
PHP_VERSION="8.5" PHP_APACHE="YES" setup_php
|
PHP_VERSION="8.5" PHP_APACHE="YES" setup_php
|
||||||
setup_composer
|
setup_composer
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ update_os
|
|||||||
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
fetch_and_deploy_gh_release "musicseerr" "HabiRabbu/Musicseerr" "tarball"
|
fetch_and_deploy_gh_release "musicseerr" "HabiRabbu/Musicseerr" "tarball"
|
||||||
NODE_VERSION="25" NODE_MODULE="pnpm@10.33.0" setup_nodejs
|
NODE_VERSION="22" NODE_MODULE="pnpm@10.33.0" setup_nodejs
|
||||||
|
|
||||||
msg_info "Building Frontend"
|
msg_info "Building Frontend"
|
||||||
cd /opt/musicseerr/frontend
|
cd /opt/musicseerr/frontend
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ $STD apt install -y \
|
|||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
UV_PYTHON="3.11" setup_uv
|
UV_PYTHON="3.11" setup_uv
|
||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "soulsync" "Nezreka/SoulSync" "tarball"
|
fetch_and_deploy_gh_release "soulsync" "Nezreka/SoulSync" "tarball"
|
||||||
|
|
||||||
|
|||||||
@@ -8227,13 +8227,11 @@ setup_ruby() {
|
|||||||
#
|
#
|
||||||
# Variables:
|
# Variables:
|
||||||
# RUST_TOOLCHAIN - Rust toolchain to install (default: stable)
|
# RUST_TOOLCHAIN - Rust toolchain to install (default: stable)
|
||||||
# RUST_PROFILE - Rust installation profile (default: default, e.g. minimal)
|
|
||||||
# RUST_CRATES - Comma-separated list of crates (e.g. "cargo-edit,wasm-pack@0.12.1")
|
# RUST_CRATES - Comma-separated list of crates (e.g. "cargo-edit,wasm-pack@0.12.1")
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
setup_rust() {
|
setup_rust() {
|
||||||
local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}"
|
local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}"
|
||||||
local RUST_PROFILE="${RUST_PROFILE:-default}"
|
|
||||||
local RUST_CRATES="${RUST_CRATES:-}"
|
local RUST_CRATES="${RUST_CRATES:-}"
|
||||||
local CARGO_BIN="${HOME}/.cargo/bin"
|
local CARGO_BIN="${HOME}/.cargo/bin"
|
||||||
|
|
||||||
@@ -8245,8 +8243,8 @@ setup_rust() {
|
|||||||
|
|
||||||
# Scenario 1: Rustup not installed - fresh install
|
# Scenario 1: Rustup not installed - fresh install
|
||||||
if ! command -v rustup &>/dev/null; then
|
if ! command -v rustup &>/dev/null; then
|
||||||
msg_info "Setup Rust ($RUST_TOOLCHAIN, profile: $RUST_PROFILE)"
|
msg_info "Setup Rust ($RUST_TOOLCHAIN)"
|
||||||
curl -fsSL https://sh.rustup.rs | $STD sh -s -- -y --profile "$RUST_PROFILE" --default-toolchain "$RUST_TOOLCHAIN" || {
|
curl -fsSL https://sh.rustup.rs | $STD sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" || {
|
||||||
msg_error "Failed to install Rust"
|
msg_error "Failed to install Rust"
|
||||||
msg_error "Hint: Check connectivity to sh.rustup.rs and static.rust-lang.org"
|
msg_error "Hint: Check connectivity to sh.rustup.rs and static.rust-lang.org"
|
||||||
return 7
|
return 7
|
||||||
|
|||||||
Reference in New Issue
Block a user