Compare commits

...

26 Commits

Author SHA1 Message Date
community-scripts-pr-app[bot]
102669cd11 Update CHANGELOG.md (#737)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-07 23:12:37 +01:00
Håvard Gjøby Thom
ae120c1e23 Fix broken build.func (#736) 2024-12-07 22:42:40 +01:00
CanbiZ
c056dd97ea Fix RAM Check for other languages 2024-12-07 22:08:56 +01:00
community-scripts-pr-app[bot]
5b2cbd3e99 Update CHANGELOG.md (#734)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-07 20:38:08 +01:00
Håvard Gjøby Thom
cadae9796e Bugfix: Include script name in website search (#731) 2024-12-07 13:23:58 -05:00
community-scripts-pr-app[bot]
9eb5cc022a Update CHANGELOG.md (#730)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-07 14:19:57 +01:00
Håvard Gjøby Thom
52898b4edf Zigbee2MQTT: Remove dev branch choice until v2.0.0 release (#702) 2024-12-07 14:17:58 +01:00
community-scripts-pr-app[bot]
e45aba86bd Update CHANGELOG.md (#726)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-07 11:26:17 +01:00
Chris
be4e6503d7 Fix Hoarder build failure by installing Chromium stable (#723) 2024-12-07 11:22:04 +01:00
community-scripts-pr-app[bot]
59deaa0a19 Update CHANGELOG.md (#721)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-06 23:11:53 +01:00
community-scripts-pr-app[bot]
a4803d178d Update CHANGELOG.md (#720)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-06 23:08:48 +01:00
Håvard Gjøby Thom
259203ee51 Update frontend CI/CD workflow (#703) 2024-12-06 23:05:19 +01:00
community-scripts-pr-app[bot]
944328625a Update CHANGELOG.md (#718)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-06 21:23:10 +01:00
Dysfunctional Programming
3d38ad0288 Fix bugs in Komga update (#717)
* Fix update script

* Update some bad update urls
2024-12-06 21:19:36 +01:00
Bram Suurd
c46f15cdc1 fix: note component in json-editor getting out of focus when typing and revert theme switch animation (#706)
* fix: note component in json-editor getting out of focus when typing. fixes JSON-Generator Notes Field #687

* revert: theme transition
2024-12-06 21:12:35 +01:00
Michel Roegl-Brunner
e2aa5fe627 Bookstack: Fix Update function composer (#700)
* Changed Update function to fix a fail

* Changed back
2024-12-06 21:10:40 +01:00
community-scripts-pr-app[bot]
493c2c931c Update CHANGELOG.md (#699)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-05 16:07:48 +01:00
Michel Roegl-Brunner
ce545bd499 Fixes #343 - Postgressqsl (#650) 2024-12-05 15:41:19 +01:00
community-scripts-pr-app[bot]
0ba2ea9183 Update CHANGELOG.md (#694)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-05 14:52:09 +01:00
Michel Roegl-Brunner
cff3fa8696 Fix rm bug in Vikunja update (#692)
* Script Update: Vikunja

* Change Request
2024-12-05 13:13:50 +01:00
community-scripts-pr-app[bot]
871fd6517d Update CHANGELOG.md (#690)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-05 09:41:43 +01:00
Michel Roegl-Brunner
3a876c99ef Update Script: Unifi (#688) 2024-12-05 09:37:46 +01:00
community-scripts-pr-app[bot]
5c3fe0e802 Update CHANGELOG.md (#677)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-04 16:34:25 +01:00
Mathijs Groothuis
3ec3478b2d Update nginxproxymanager-install.sh (#676)
Fix typo 'Enviroment' > 'Environment
2024-12-04 16:30:37 +01:00
community-scripts-pr-app[bot]
67524454d7 Update CHANGELOG.md (#669)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-04 07:37:09 +01:00
Chris Carducci
ec27e92833 Update homepage.json documentation and website (#668)
Homepage (app) documentation link was broken. I also suggest changing the website to the main homepage website instead of the github repo (which is linked from the true main page)
2024-12-04 07:35:41 +01:00
17 changed files with 207 additions and 203 deletions

View File

@@ -1,79 +0,0 @@
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Deploy Next.js site to Pages
on:
push:
branches: ["main"]
paths:
- frontend/**
- json/**
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend # Set default working directory for all run steps
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/frontend/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/frontend/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
cache-dependency-path: frontend/package-lock.json # Specify the path to package-lock.json
- name: Setup Pages
uses: actions/configure-pages@v5
with:
static_site_generator: next
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} --legacy-peer-deps
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: frontend/out
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

78
.github/workflows/frontend-cicd.yml vendored Normal file
View File

@@ -0,0 +1,78 @@
# Based on https://github.com/actions/starter-workflows/blob/main/pages/nextjs.yml
name: Frontend CI/CD
on:
push:
branches: ["main"]
paths:
- frontend/**
- json/**
pull_request:
branches: ["main"]
types: [opened, synchronize, reopened, edited]
paths:
- frontend/**
- json/**
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend # Set default working directory for all run steps
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: npm ci --prefer-offline --legacy-peer-deps
- name: Run tests
run: npm run test
- name: Configure Next.js for pages
uses: actions/configure-pages@v5
with:
static_site_generator: next
- name: Build with Next.js
run: npm run build
- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: frontend/out
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

View File

@@ -16,6 +16,62 @@ All LXC instances created using this repository come pre-installed with Midnight
> [!IMPORTANT] > [!IMPORTANT]
Do not break established syntax in this file, as it is automatically updated by a Github Workflow Do not break established syntax in this file, as it is automatically updated by a Github Workflow
## 2024-12-07
### Changed
### 🚀 Updated Scripts
- Zigbee2MQTT: Remove dev branch choice until v2.0.0 release [@havardthom](https://github.com/havardthom) ([#702](https://github.com/community-scripts/ProxmoxVE/pull/702))
- Fix Hoarder build failure by installing Chromium stable [@vhsdream](https://github.com/vhsdream) ([#723](https://github.com/community-scripts/ProxmoxVE/pull/723))
### 🌐 Website
- Bugfix: Include script name in website search [@havardthom](https://github.com/havardthom) ([#731](https://github.com/community-scripts/ProxmoxVE/pull/731))
### ❔ Unlabelled
- Fix broken build.func [@havardthom](https://github.com/havardthom) ([#736](https://github.com/community-scripts/ProxmoxVE/pull/736))
## 2024-12-06
### Changed
### 🚀 Updated Scripts
- Fix bugs in Komga update [@DysfunctionalProgramming](https://github.com/DysfunctionalProgramming) ([#717](https://github.com/community-scripts/ProxmoxVE/pull/717))
- Bookstack: Fix Update function composer [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#700](https://github.com/community-scripts/ProxmoxVE/pull/700))
### 🌐 Website
- fix: note component in json-editor getting out of focus when typing and revert theme switch animation [@BramSuurdje](https://github.com/BramSuurdje) ([#706](https://github.com/community-scripts/ProxmoxVE/pull/706))
### 🧰 Maintenance
- Update frontend CI/CD workflow [@havardthom](https://github.com/havardthom) ([#703](https://github.com/community-scripts/ProxmoxVE/pull/703))
## 2024-12-05
### Changed
### 🚀 Updated Scripts
- PostgreSQL: Change authentication method from peer to md5 for UNIX sockets [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#650](https://github.com/community-scripts/ProxmoxVE/pull/650))
- Fix stdout in unifi.sh [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#688](https://github.com/community-scripts/ProxmoxVE/pull/688))
- Fix `rm` bug in Vikunja update [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#692](https://github.com/community-scripts/ProxmoxVE/pull/692))
## 2024-12-04
### Changed
### 🚀 Updated Scripts
- Update Spelling 'Environment' in nginxproxymanager [@MathijsG](https://github.com/MathijsG) ([#676](https://github.com/community-scripts/ProxmoxVE/pull/676))
### 🌐 Website
- Update homepage.json documentation and website links [@patchmonkey](https://github.com/patchmonkey) ([#668](https://github.com/community-scripts/ProxmoxVE/pull/668))
## 2024-12-03 ## 2024-12-03
### Changed ### Changed

View File

@@ -70,9 +70,10 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
unzip -q v${RELEASE}.zip unzip -q v${RELEASE}.zip
mv BookStack-${RELEASE} /opt/bookstack mv BookStack-${RELEASE} /opt/bookstack
mv /opt/.env /opt/bookstack/.env mv /opt/.env /opt/bookstack/.env
cd /opt/bookstack
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev &>/dev/null COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev &>/dev/null
php artisan key:generate &>/dev/null php artisan key:generate --force &>/dev/null
php artisan migrate &>/dev/null php artisan migrate --force &>/dev/null
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"

View File

@@ -56,7 +56,7 @@ function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -f /opt/komga/komga*.jar ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -f /opt/komga/komga.jar ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
@@ -65,8 +65,8 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
msg_ok "Stopped ${APP}" msg_ok "Stopped ${APP}"
msg_info "Updating ${APP} to ${RELEASE}" msg_info "Updating ${APP} to ${RELEASE}"
rm -rf /opt/komga/komga*.jar wget -q "https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar"
wget -q "https://github.com/gotson/komga/releases/download/v${RELEASE}/komga-${RELEASE}.jar" rm -rf /opt/komga/komga.jar
mv -f komga-${RELEASE}.jar /opt/komga/komga.jar mv -f komga-${RELEASE}.jar /opt/komga/komga.jar
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP} to ${RELEASE}" msg_ok "Updated ${APP} to ${RELEASE}"

View File

@@ -58,8 +58,8 @@ check_container_storage
check_container_resources check_container_resources
if [[ ! -d /usr/lib/unifi ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /usr/lib/unifi ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
apt-get update --allow-releaseinfo-change apt-get update --allow-releaseinfo-change &>/dev/null
apt-get install -y unifi apt-get install -y unifi &>/dev/null
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@@ -67,7 +67,7 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
msg_info "Updating ${APP} to ${RELEASE}" msg_info "Updating ${APP} to ${RELEASE}"
cd /opt cd /opt
rm -rf /opt/* rm -rf /opt/vikunja/vikunja
wget -q "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb" wget -q "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb"
DEBIAN_FRONTEND=noninteractive dpkg -i vikunja-$RELEASE-amd64.deb &>/dev/null DEBIAN_FRONTEND=noninteractive dpkg -i vikunja-$RELEASE-amd64.deb &>/dev/null
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt

View File

@@ -12,7 +12,7 @@ import { cn } from "@/lib/utils";
import { PlusCircle, Trash2 } from "lucide-react"; import { PlusCircle, Trash2 } from "lucide-react";
import { z } from "zod"; import { z } from "zod";
import { ScriptSchema, type Script } from "../_schemas/schemas"; import { ScriptSchema, type Script } from "../_schemas/schemas";
import { memo, useCallback } from "react"; import { memo, useCallback, useRef } from "react";
type NoteProps = { type NoteProps = {
script: Script; script: Script;
@@ -27,6 +27,8 @@ function Note({
setIsValid, setIsValid,
setZodErrors, setZodErrors,
}: NoteProps) { }: NoteProps) {
const inputRefs = useRef<(HTMLInputElement | null)[]>([]);
const addNote = useCallback(() => { const addNote = useCallback(() => {
setScript({ setScript({
...script, ...script,
@@ -49,6 +51,12 @@ function Note({
setIsValid(result.success); setIsValid(result.success);
setZodErrors(result.success ? null : result.error); setZodErrors(result.success ? null : result.error);
setScript(updated); setScript(updated);
// Restore focus after state update
if (key === "text") {
setTimeout(() => {
inputRefs.current[index]?.focus();
}, 0);
}
}, [script, setScript, setIsValid, setZodErrors]); }, [script, setScript, setIsValid, setZodErrors]);
const removeNote = useCallback((index: number) => { const removeNote = useCallback((index: number) => {
@@ -58,46 +66,51 @@ function Note({
}); });
}, [script, setScript]); }, [script, setScript]);
const NoteItem = memo(({ note, index }: { note: Script["notes"][number], index: number }) => ( const NoteItem = memo(
<div className="space-y-2 border p-4 rounded"> ({ note, index }: { note: Script["notes"][number]; index: number }) => (
<Input <div className="space-y-2 border p-4 rounded">
placeholder="Note Text" <Input
value={note.text} placeholder="Note Text"
onChange={(e) => updateNote(index, "text", e.target.value)} value={note.text}
/> onChange={(e) => updateNote(index, "text", e.target.value)}
<Select ref={(el) => {
value={note.type} inputRefs.current[index] = el;
onValueChange={(value) => updateNote(index, "type", value)} }}
> />
<SelectTrigger className="flex-1"> <Select
<SelectValue placeholder="Type" /> value={note.type}
</SelectTrigger> onValueChange={(value) => updateNote(index, "type", value)}
<SelectContent> >
{Object.keys(AlertColors).map((type) => ( <SelectTrigger className="flex-1">
<SelectItem key={type} value={type}> <SelectValue placeholder="Type" />
<span className="flex items-center gap-2"> </SelectTrigger>
{type.charAt(0).toUpperCase() + type.slice(1)}{" "} <SelectContent>
<div {Object.keys(AlertColors).map((type) => (
className={cn( <SelectItem key={type} value={type}>
"size-4 rounded-full border", <span className="flex items-center gap-2">
AlertColors[type as keyof typeof AlertColors], {type.charAt(0).toUpperCase() + type.slice(1)}{" "}
)} <div
/> className={cn(
</span> "size-4 rounded-full border",
</SelectItem> AlertColors[type as keyof typeof AlertColors],
))} )}
</SelectContent> />
</Select> </span>
<Button </SelectItem>
size="sm" ))}
variant="destructive" </SelectContent>
type="button" </Select>
onClick={() => removeNote(index)} <Button
> size="sm"
<Trash2 className="mr-2 h-4 w-4" /> Remove Note variant="destructive"
</Button> type="button"
</div> onClick={() => removeNote(index)}
)); >
<Trash2 className="mr-2 h-4 w-4" /> Remove Note
</Button>
</div>
),
);
NoteItem.displayName = 'NoteItem'; NoteItem.displayName = 'NoteItem';

View File

@@ -95,7 +95,7 @@ export default function CommandMenu() {
{category.scripts.map((script) => ( {category.scripts.map((script) => (
<CommandItem <CommandItem
key={`script:${script.slug}`} key={`script:${script.slug}`}
value={script.slug} value={`${script.slug}-${script.name}`}
onSelect={() => { onSelect={() => {
setOpen(false); setOpen(false);
router.push(`/scripts?id=${script.slug}`); router.push(`/scripts?id=${script.slug}`);

View File

@@ -30,24 +30,6 @@
--chart-3: 197 37% 24%; --chart-3: 197 37% 24%;
--chart-4: 43 74% 66%; --chart-4: 43 74% 66%;
--chart-5: 27 87% 67%; --chart-5: 27 87% 67%;
--expo-out: linear(
0 0%,
0.1684 2.66%,
0.3165 5.49%,
0.446 8.52%,
0.5581 11.78%,
0.6535 15.29%,
0.7341 19.11%,
0.8011 23.3%,
0.8557 27.93%,
0.8962 32.68%,
0.9283 38.01%,
0.9529 44.08%,
0.9711 51.14%,
0.9833 59.06%,
0.9915 68.74%,
1 100%
);
} }
::selection { ::selection {
@@ -81,42 +63,6 @@
--chart-4: 280 65% 60%; --chart-4: 280 65% 60%;
--chart-5: 340 75% 55%; --chart-5: 340 75% 55%;
} }
::view-transition-group(root) {
animation-duration: 0.7bun s;
animation-timing-function: var(--expo-out);
}
::view-transition-new(root) {
animation-name: reveal-light;
}
::view-transition-old(root),
.dark::view-transition-old(root) {
animation: none;
z-index: -1;
}
.dark::view-transition-new(root) {
animation-name: reveal-dark;
}
@keyframes reveal-dark {
from {
clip-path: polygon(50% -71%, -50% 71%, -50% 71%, 50% -71%);
}
to {
clip-path: polygon(50% -71%, -50% 71%, 50% 171%, 171% 50%);
}
}
@keyframes reveal-light {
from {
clip-path: polygon(171% 50%, 50% 171%, 50% 171%, 171% 50%);
}
to {
clip-path: polygon(171% 50%, 50% 171%, -50% 71%, 50% -71%);
}
}
} }
@layer base { @layer base {

View File

@@ -22,7 +22,8 @@ $STD apt-get install -y \
sudo \ sudo \
gnupg \ gnupg \
ca-certificates \ ca-certificates \
chromium \ chromium/stable \
chromium-common/stable \
mc mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"

View File

@@ -80,7 +80,7 @@ else
cd ./nginx-proxy-manager-${RELEASE} cd ./nginx-proxy-manager-${RELEASE}
msg_ok "Downloaded Nginx Proxy Manager v${RELEASE}" msg_ok "Downloaded Nginx Proxy Manager v${RELEASE}"
fi fi
msg_info "Setting up Enviroment" msg_info "Setting up Environment"
ln -sf /usr/bin/python3 /usr/bin/python ln -sf /usr/bin/python3 /usr/bin/python
ln -sf /usr/bin/certbot /opt/certbot/bin/certbot ln -sf /usr/bin/certbot /opt/certbot/bin/certbot
ln -sf /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx ln -sf /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx

View File

@@ -35,7 +35,7 @@ cat <<EOF >/etc/postgresql/17/main/pg_hba.conf
local all postgres peer local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD # TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only # "local" is for Unix domain socket connections only
local all all peer local all all md5
# IPv4 local connections: # IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256 host all all 127.0.0.1/32 scram-sha-256
host all all 0.0.0.0/24 md5 host all all 0.0.0.0/24 md5

View File

@@ -40,20 +40,8 @@ msg_info "Setting up Zigbee2MQTT Repository"
$STD git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt $STD git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
msg_ok "Set up Zigbee2MQTT Repository" msg_ok "Set up Zigbee2MQTT Repository"
read -r -p "Switch to Edge/dev branch? (y/N) " prompt
if [[ $prompt == "y" ]]; then
DEV="y"
else
DEV="n"
fi
msg_info "Installing Zigbee2MQTT" msg_info "Installing Zigbee2MQTT"
cd /opt/zigbee2mqtt cd /opt/zigbee2mqtt
if [[ $DEV == "y" ]]; then
$STD git fetch origin dev:dev
$STD git checkout dev
$STD git pull
fi
$STD npm ci $STD npm ci
msg_ok "Installed Zigbee2MQTT" msg_ok "Installed Zigbee2MQTT"

View File

@@ -9,8 +9,8 @@
"updateable": true, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 3000, "interface_port": 3000,
"documentation": "https://gethomepage.dev/latest/configs/", "documentation": "https://gethomepage.dev/configs/",
"website": "https://github.com/benphelps/homepage", "website": "https://gethomepage.dev",
"logo": "https://avatars.githubusercontent.com/u/122929872?v=4", "logo": "https://avatars.githubusercontent.com/u/122929872?v=4",
"description": "Homepage is a self-hosted dashboard solution for centralizing and organizing data and information.", "description": "Homepage is a self-hosted dashboard solution for centralizing and organizing data and information.",
"install_methods": [ "install_methods": [

View File

@@ -16,7 +16,7 @@
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",
"script": "/ct/onedev.sh", "script": "ct/onedev.sh",
"resources": { "resources": {
"cpu": 2, "cpu": 2,
"ram": 2048, "ram": 2048,

View File

@@ -504,7 +504,7 @@ install_script() {
check_container_resources() { check_container_resources() {
# Check actual RAM & Cores # Check actual RAM & Cores
current_ram=$(free -m | awk '/^Mem:/{print $2}') current_ram=$(free -m | awk 'NR==2{print $2}')
current_cpu=$(nproc) current_cpu=$(nproc)
# Check whether the current RAM is less than the required RAM or the CPU cores are less than required # Check whether the current RAM is less than the required RAM or the CPU cores are less than required