Porównaj commity
20 Commity
jammy-823b
...
jammy
Autor | SHA1 | Data |
---|---|---|
![]() |
6b91dade60 | |
![]() |
fc56ecd716 | |
![]() |
136e5c56b6 | |
![]() |
a43054a951 | |
![]() |
1c75743213 | |
![]() |
5b7a623d31 | |
![]() |
8e408e1e59 | |
![]() |
8bc194e16c | |
![]() |
53312f9aa0 | |
![]() |
b3b8e87f78 | |
![]() |
3ff397424d | |
![]() |
c23a38fb6a | |
![]() |
1084d53330 | |
![]() |
c9711b4b82 | |
![]() |
3f0f340be9 | |
![]() |
17fc248600 | |
![]() |
baed74b393 | |
![]() |
cd42f7fe4a | |
![]() |
9816352c23 | |
![]() |
949149983f |
|
@ -8,6 +8,9 @@ on:
|
|||
pull_request_review:
|
||||
types: [submitted,edited,dismissed]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
manage-project:
|
||||
permissions:
|
||||
|
|
|
@ -4,6 +4,9 @@ on:
|
|||
- cron: '13 7 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
|
|
|
@ -3,6 +3,9 @@ name: External Trigger Main
|
|||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
external-trigger-jammy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -5,6 +5,9 @@ on:
|
|||
- cron: '18 * * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
external-trigger-scheduler:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -2,8 +2,14 @@ name: Greetings
|
|||
|
||||
on: [pull_request_target, issues]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
greeting:
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/first-interaction@v1
|
||||
|
|
|
@ -5,6 +5,9 @@ on:
|
|||
- cron: '19 23 * * 2'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
package-trigger-scheduler:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -94,7 +94,11 @@ pipeline {
|
|||
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
|
||||
env.PULL_REQUEST = env.CHANGE_ID
|
||||
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml'
|
||||
if ( env.SYFT_IMAGE_TAG == null ) {
|
||||
env.SYFT_IMAGE_TAG = 'latest'
|
||||
}
|
||||
}
|
||||
echo "Using syft image tag ${SYFT_IMAGE_TAG}"
|
||||
sh '''#! /bin/bash
|
||||
echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" '''
|
||||
script{
|
||||
|
@ -712,7 +716,7 @@ pipeline {
|
|||
docker run --rm \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock:ro \
|
||||
-v ${TEMPDIR}:/tmp \
|
||||
ghcr.io/anchore/syft:latest \
|
||||
ghcr.io/anchore/syft:${SYFT_IMAGE_TAG} \
|
||||
${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt
|
||||
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
|
||||
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
|
||||
|
@ -822,6 +826,7 @@ pipeline {
|
|||
-e WEB_AUTH=\"${CI_AUTH}\" \
|
||||
-e WEB_PATH=\"${CI_WEBPATH}\" \
|
||||
-e NODE_NAME=\"${NODE_NAME}\" \
|
||||
-e SYFT_IMAGE_TAG=\"${CI_SYFT_IMAGE_TAG:-${SYFT_IMAGE_TAG}}\" \
|
||||
-t ghcr.io/linuxserver/ci:latest \
|
||||
python3 test_build.py'''
|
||||
}
|
||||
|
|
|
@ -1,148 +1,146 @@
|
|||
NAME VERSION TYPE
|
||||
adduser 3.118ubuntu5 deb
|
||||
apt 2.4.13 deb
|
||||
apt-utils 2.4.13 deb
|
||||
base-files 12ubuntu4.7 deb
|
||||
base-passwd 3.5.52build1 deb
|
||||
bash 5.1-6ubuntu1.1 deb
|
||||
bash 5.1.16 binary
|
||||
bsdutils 1:2.37.2-4ubuntu3.4 deb
|
||||
ca-certificates 20240203~22.04.1 deb
|
||||
catatonit 0.1.7-1 deb
|
||||
coreutils 8.32-4.1ubuntu1.2 deb
|
||||
cron 3.0pl1-137ubuntu3 deb
|
||||
curl 7.81.0-1ubuntu1.20 deb
|
||||
dash 0.5.11+git20210903+057cd650a4ed-3build1 deb
|
||||
debconf 1.5.79ubuntu1 deb
|
||||
debianutils 5.5-1ubuntu2 deb
|
||||
diffutils 1:3.8-0ubuntu2 deb
|
||||
dirmngr 2.2.27-3ubuntu2.3 deb
|
||||
dpkg 1.21.1ubuntu2.3 deb
|
||||
e2fsprogs 1.46.5-2ubuntu1.2 deb
|
||||
findutils 4.8.0-1ubuntu3 deb
|
||||
gcc-12-base 12.3.0-1ubuntu1~22.04 deb
|
||||
gnupg 2.2.27-3ubuntu2.3 deb
|
||||
gnupg-l10n 2.2.27-3ubuntu2.3 deb
|
||||
gnupg-utils 2.2.27-3ubuntu2.3 deb
|
||||
gpg 2.2.27-3ubuntu2.3 deb
|
||||
gpg-agent 2.2.27-3ubuntu2.3 deb
|
||||
gpg-wks-client 2.2.27-3ubuntu2.3 deb
|
||||
gpg-wks-server 2.2.27-3ubuntu2.3 deb
|
||||
gpgconf 2.2.27-3ubuntu2.3 deb
|
||||
gpgsm 2.2.27-3ubuntu2.3 deb
|
||||
gpgv 2.2.27-3ubuntu2.3 deb
|
||||
grep 3.7-1build1 deb
|
||||
gzip 1.10 binary
|
||||
gzip 1.10-4ubuntu4.1 deb
|
||||
hostname 3.23ubuntu2 deb
|
||||
init-system-helpers 1.62 deb
|
||||
jq 1.6-2.1ubuntu3 deb
|
||||
libacl1 2.3.1-1 deb
|
||||
libapt-pkg6.0 2.4.13 deb
|
||||
libassuan0 2.5.5-1build1 deb
|
||||
libattr1 1:2.5.1-1build1 deb
|
||||
libaudit-common 1:3.0.7-1build1 deb
|
||||
libaudit1 1:3.0.7-1build1 deb
|
||||
libblkid1 2.37.2-4ubuntu3.4 deb
|
||||
libbrotli1 1.0.9-2build6 deb
|
||||
libbsd0 0.11.5-1 deb
|
||||
libbz2-1.0 1.0.8-5build1 deb
|
||||
libc-bin 2.35-0ubuntu3.9 deb
|
||||
libc6 2.35-0ubuntu3.9 deb
|
||||
libcap-ng0 0.7.9-2.2build3 deb
|
||||
libcap2 1:2.44-1ubuntu0.22.04.2 deb
|
||||
libcom-err2 1.46.5-2ubuntu1.2 deb
|
||||
libcrypt1 1:4.4.27-1 deb
|
||||
libcurl4 7.81.0-1ubuntu1.20 deb
|
||||
libdb5.3 5.3.28+dfsg1-0.8ubuntu3 deb
|
||||
libdebconfclient0 0.261ubuntu1 deb
|
||||
libext2fs2 1.46.5-2ubuntu1.2 deb
|
||||
libffi8 3.4.2-4 deb
|
||||
libgcc-s1 12.3.0-1ubuntu1~22.04 deb
|
||||
libgcrypt20 1.9.4-3ubuntu3 deb
|
||||
libgmp10 2:6.2.1+dfsg-3ubuntu1 deb
|
||||
libgnutls30 3.7.3-4ubuntu1.6 deb
|
||||
libgpg-error0 1.43-3 deb
|
||||
libgssapi-krb5-2 1.19.2-2ubuntu0.6 deb
|
||||
libhogweed6 3.7.3-1build2 deb
|
||||
libidn2-0 2.3.2-2build1 deb
|
||||
libjq1 1.6-2.1ubuntu3 deb
|
||||
libk5crypto3 1.19.2-2ubuntu0.6 deb
|
||||
libkeyutils1 1.6.1-2ubuntu3 deb
|
||||
libkrb5-3 1.19.2-2ubuntu0.6 deb
|
||||
libkrb5support0 1.19.2-2ubuntu0.6 deb
|
||||
libksba8 1.6.0-2ubuntu0.2 deb
|
||||
libldap-2.5-0 2.5.18+dfsg-0ubuntu0.22.04.3 deb
|
||||
libldap-common 2.5.18+dfsg-0ubuntu0.22.04.3 deb
|
||||
liblz4-1 1.9.3-2build2 deb
|
||||
liblzma5 5.2.5-2ubuntu1 deb
|
||||
libmd0 1.0.4-1build1 deb
|
||||
libmount1 2.37.2-4ubuntu3.4 deb
|
||||
libncurses6 6.3-2ubuntu0.1 deb
|
||||
libncursesw6 6.3-2ubuntu0.1 deb
|
||||
libnettle8 3.7.3-1build2 deb
|
||||
libnghttp2-14 1.43.0-1ubuntu0.2 deb
|
||||
libnpth0 1.6-3build2 deb
|
||||
libnsl2 1.3.0-2build2 deb
|
||||
libonig5 6.9.7.1-2build1 deb
|
||||
libp11-kit0 0.24.0-6build1 deb
|
||||
libpam-modules 1.4.0-11ubuntu2.5 deb
|
||||
libpam-modules-bin 1.4.0-11ubuntu2.5 deb
|
||||
libpam-runtime 1.4.0-11ubuntu2.5 deb
|
||||
libpam0g 1.4.0-11ubuntu2.5 deb
|
||||
libpcre2-8-0 10.39-3ubuntu0.1 deb
|
||||
libpcre3 2:8.39-13ubuntu0.22.04.1 deb
|
||||
libprocps8 2:3.3.17-6ubuntu2.1 deb
|
||||
libpsl5 0.21.0-1.2build2 deb
|
||||
libreadline8 8.1.2-1 deb
|
||||
librtmp1 2.4+20151223.gitfa8646d.1-2build4 deb
|
||||
libsasl2-2 2.1.27+dfsg2-3ubuntu1.2 deb
|
||||
libsasl2-modules 2.1.27+dfsg2-3ubuntu1.2 deb
|
||||
libsasl2-modules-db 2.1.27+dfsg2-3ubuntu1.2 deb
|
||||
libseccomp2 2.5.3-2ubuntu3~22.04.1 deb
|
||||
libselinux1 3.3-1build2 deb
|
||||
libsemanage-common 3.3-1build2 deb
|
||||
libsemanage2 3.3-1build2 deb
|
||||
libsepol2 3.3-1build1 deb
|
||||
libsmartcols1 2.37.2-4ubuntu3.4 deb
|
||||
libsqlite3-0 3.37.2-2ubuntu0.3 deb
|
||||
libss2 1.46.5-2ubuntu1.2 deb
|
||||
libssh-4 0.9.6-2ubuntu0.22.04.3 deb
|
||||
libssl3 3.0.2-0ubuntu1.19 deb
|
||||
libstdc++6 12.3.0-1ubuntu1~22.04 deb
|
||||
libsystemd0 249.11-0ubuntu3.15 deb
|
||||
libtasn1-6 4.18.0-4ubuntu0.1 deb
|
||||
libtinfo6 6.3-2ubuntu0.1 deb
|
||||
libtirpc-common 1.3.2-2ubuntu0.1 deb
|
||||
libtirpc3 1.3.2-2ubuntu0.1 deb
|
||||
libudev1 249.11-0ubuntu3.15 deb
|
||||
libunistring2 1.0-1 deb
|
||||
libuuid1 2.37.2-4ubuntu3.4 deb
|
||||
libxxhash0 0.8.1-1 deb
|
||||
libzstd1 1.4.8+dfsg-3build1 deb
|
||||
locales 2.35-0ubuntu3.9 deb
|
||||
login 1:4.8.1-2ubuntu2.2 deb
|
||||
logsave 1.46.5-2ubuntu1.2 deb
|
||||
lsb-base 11.1.0ubuntu4 deb
|
||||
mawk 1.3.4.20200120-3 deb
|
||||
mount 2.37.2-4ubuntu3.4 deb
|
||||
ncurses-base 6.3-2ubuntu0.1 deb
|
||||
ncurses-bin 6.3-2ubuntu0.1 deb
|
||||
netcat 1.218-4ubuntu1 deb
|
||||
netcat-openbsd 1.218-4ubuntu1 deb
|
||||
openssl 3.0.2-0ubuntu1.19 deb
|
||||
passwd 1:4.8.1-2ubuntu2.2 deb
|
||||
perl-base 5.34.0-3ubuntu1.3 deb
|
||||
pinentry-curses 1.1.1-1build2 deb
|
||||
procps 2:3.3.17-6ubuntu2.1 deb
|
||||
publicsuffix 20211207.1025-1 deb
|
||||
readline-common 8.1.2-1 deb
|
||||
sed 4.8-1ubuntu2 deb
|
||||
sensible-utils 0.0.17 deb
|
||||
sysvinit-utils 3.01-1ubuntu1 deb
|
||||
tar 1.34+dfsg-1ubuntu0.1.22.04.2 deb
|
||||
tzdata 2025b-0ubuntu0.22.04 deb
|
||||
ubuntu-keyring 2021.03.26 deb
|
||||
usrmerge 25ubuntu2 deb
|
||||
util-linux 2.37.2-4ubuntu3.4 deb
|
||||
zlib1g 1:1.2.11.dfsg-2ubuntu9.2 deb
|
||||
NAME VERSION TYPE
|
||||
adduser 3.118ubuntu5 deb
|
||||
apt 2.4.14 deb
|
||||
apt-utils 2.4.14 deb
|
||||
base-files 12ubuntu4.7 deb
|
||||
base-passwd 3.5.52build1 deb
|
||||
bash 5.1-6ubuntu1.1 deb
|
||||
bsdutils 1:2.37.2-4ubuntu3.4 deb
|
||||
ca-certificates 20240203~22.04.1 deb
|
||||
catatonit 0.1.7-1 deb
|
||||
coreutils 8.32-4.1ubuntu1.2 deb
|
||||
cron 3.0pl1-137ubuntu3 deb
|
||||
curl 7.81.0-1ubuntu1.21 deb
|
||||
dash 0.5.11+git20210903+057cd650a4ed-3build1 deb
|
||||
debconf 1.5.79ubuntu1 deb
|
||||
debianutils 5.5-1ubuntu2 deb
|
||||
diffutils 1:3.8-0ubuntu2 deb
|
||||
dirmngr 2.2.27-3ubuntu2.4 deb
|
||||
dpkg 1.21.1ubuntu2.6 deb
|
||||
e2fsprogs 1.46.5-2ubuntu1.2 deb
|
||||
findutils 4.8.0-1ubuntu3 deb
|
||||
gcc-12-base 12.3.0-1ubuntu1~22.04.2 deb
|
||||
gnupg 2.2.27-3ubuntu2.4 deb
|
||||
gnupg-l10n 2.2.27-3ubuntu2.4 deb
|
||||
gnupg-utils 2.2.27-3ubuntu2.4 deb
|
||||
gpg 2.2.27-3ubuntu2.4 deb
|
||||
gpg-agent 2.2.27-3ubuntu2.4 deb
|
||||
gpg-wks-client 2.2.27-3ubuntu2.4 deb
|
||||
gpg-wks-server 2.2.27-3ubuntu2.4 deb
|
||||
gpgconf 2.2.27-3ubuntu2.4 deb
|
||||
gpgsm 2.2.27-3ubuntu2.4 deb
|
||||
gpgv 2.2.27-3ubuntu2.4 deb
|
||||
grep 3.7-1build1 deb
|
||||
gzip 1.10-4ubuntu4.1 deb
|
||||
hostname 3.23ubuntu2 deb
|
||||
init-system-helpers 1.62 deb
|
||||
jq 1.6-2.1ubuntu3.1 deb
|
||||
libacl1 2.3.1-1 deb
|
||||
libapt-pkg6.0 2.4.14 deb
|
||||
libassuan0 2.5.5-1build1 deb
|
||||
libattr1 1:2.5.1-1build1 deb
|
||||
libaudit-common 1:3.0.7-1build1 deb
|
||||
libaudit1 1:3.0.7-1build1 deb
|
||||
libblkid1 2.37.2-4ubuntu3.4 deb
|
||||
libbrotli1 1.0.9-2build6 deb
|
||||
libbsd0 0.11.5-1 deb
|
||||
libbz2-1.0 1.0.8-5build1 deb
|
||||
libc-bin 2.35-0ubuntu3.11 deb
|
||||
libc6 2.35-0ubuntu3.11 deb
|
||||
libcap-ng0 0.7.9-2.2build3 deb
|
||||
libcap2 1:2.44-1ubuntu0.22.04.2 deb
|
||||
libcom-err2 1.46.5-2ubuntu1.2 deb
|
||||
libcrypt1 1:4.4.27-1 deb
|
||||
libcurl4 7.81.0-1ubuntu1.21 deb
|
||||
libdb5.3 5.3.28+dfsg1-0.8ubuntu3 deb
|
||||
libdebconfclient0 0.261ubuntu1 deb
|
||||
libext2fs2 1.46.5-2ubuntu1.2 deb
|
||||
libffi8 3.4.2-4 deb
|
||||
libgcc-s1 12.3.0-1ubuntu1~22.04.2 deb
|
||||
libgcrypt20 1.9.4-3ubuntu3 deb
|
||||
libgmp10 2:6.2.1+dfsg-3ubuntu1 deb
|
||||
libgnutls30 3.7.3-4ubuntu1.7 deb
|
||||
libgpg-error0 1.43-3 deb
|
||||
libgssapi-krb5-2 1.19.2-2ubuntu0.7 deb
|
||||
libhogweed6 3.7.3-1build2 deb
|
||||
libidn2-0 2.3.2-2build1 deb
|
||||
libjq1 1.6-2.1ubuntu3.1 deb
|
||||
libk5crypto3 1.19.2-2ubuntu0.7 deb
|
||||
libkeyutils1 1.6.1-2ubuntu3 deb
|
||||
libkrb5-3 1.19.2-2ubuntu0.7 deb
|
||||
libkrb5support0 1.19.2-2ubuntu0.7 deb
|
||||
libksba8 1.6.0-2ubuntu0.2 deb
|
||||
libldap-2.5-0 2.5.19+dfsg-0ubuntu0.22.04.1 deb
|
||||
libldap-common 2.5.19+dfsg-0ubuntu0.22.04.1 deb
|
||||
liblz4-1 1.9.3-2build2 deb
|
||||
liblzma5 5.2.5-2ubuntu1 deb
|
||||
libmd0 1.0.4-1build1 deb
|
||||
libmount1 2.37.2-4ubuntu3.4 deb
|
||||
libncurses6 6.3-2ubuntu0.1 deb
|
||||
libncursesw6 6.3-2ubuntu0.1 deb
|
||||
libnettle8 3.7.3-1build2 deb
|
||||
libnghttp2-14 1.43.0-1ubuntu0.2 deb
|
||||
libnpth0 1.6-3build2 deb
|
||||
libnsl2 1.3.0-2build2 deb
|
||||
libonig5 6.9.7.1-2build1 deb
|
||||
libp11-kit0 0.24.0-6build1 deb
|
||||
libpam-modules 1.4.0-11ubuntu2.6 deb
|
||||
libpam-modules-bin 1.4.0-11ubuntu2.6 deb
|
||||
libpam-runtime 1.4.0-11ubuntu2.6 deb
|
||||
libpam0g 1.4.0-11ubuntu2.6 deb
|
||||
libpcre2-8-0 10.39-3ubuntu0.1 deb
|
||||
libpcre3 2:8.39-13ubuntu0.22.04.1 deb
|
||||
libprocps8 2:3.3.17-6ubuntu2.1 deb
|
||||
libpsl5 0.21.0-1.2build2 deb
|
||||
libreadline8 8.1.2-1 deb
|
||||
librtmp1 2.4+20151223.gitfa8646d.1-2build4 deb
|
||||
libsasl2-2 2.1.27+dfsg2-3ubuntu1.2 deb
|
||||
libsasl2-modules 2.1.27+dfsg2-3ubuntu1.2 deb
|
||||
libsasl2-modules-db 2.1.27+dfsg2-3ubuntu1.2 deb
|
||||
libseccomp2 2.5.3-2ubuntu3~22.04.1 deb
|
||||
libselinux1 3.3-1build2 deb
|
||||
libsemanage-common 3.3-1build2 deb
|
||||
libsemanage2 3.3-1build2 deb
|
||||
libsepol2 3.3-1build1 deb
|
||||
libsmartcols1 2.37.2-4ubuntu3.4 deb
|
||||
libsqlite3-0 3.37.2-2ubuntu0.5 deb
|
||||
libss2 1.46.5-2ubuntu1.2 deb
|
||||
libssh-4 0.9.6-2ubuntu0.22.04.4 deb
|
||||
libssl3 3.0.2-0ubuntu1.20 deb
|
||||
libstdc++6 12.3.0-1ubuntu1~22.04.2 deb
|
||||
libsystemd0 249.11-0ubuntu3.16 deb
|
||||
libtasn1-6 4.18.0-4ubuntu0.1 deb
|
||||
libtinfo6 6.3-2ubuntu0.1 deb
|
||||
libtirpc-common 1.3.2-2ubuntu0.1 deb
|
||||
libtirpc3 1.3.2-2ubuntu0.1 deb
|
||||
libudev1 249.11-0ubuntu3.16 deb
|
||||
libunistring2 1.0-1 deb
|
||||
libuuid1 2.37.2-4ubuntu3.4 deb
|
||||
libxxhash0 0.8.1-1 deb
|
||||
libzstd1 1.4.8+dfsg-3build1 deb
|
||||
locales 2.35-0ubuntu3.11 deb
|
||||
login 1:4.8.1-2ubuntu2.2 deb
|
||||
logsave 1.46.5-2ubuntu1.2 deb
|
||||
lsb-base 11.1.0ubuntu4 deb
|
||||
mawk 1.3.4.20200120-3 deb
|
||||
mount 2.37.2-4ubuntu3.4 deb
|
||||
ncurses-base 6.3-2ubuntu0.1 deb
|
||||
ncurses-bin 6.3-2ubuntu0.1 deb
|
||||
netcat 1.218-4ubuntu1 deb
|
||||
netcat-openbsd 1.218-4ubuntu1 deb
|
||||
openssl 3.0.2-0ubuntu1.20 deb
|
||||
passwd 1:4.8.1-2ubuntu2.2 deb
|
||||
perl-base 5.34.0-3ubuntu1.5 deb
|
||||
pinentry-curses 1.1.1-1build2 deb
|
||||
procps 2:3.3.17-6ubuntu2.1 deb
|
||||
publicsuffix 20211207.1025-1 deb
|
||||
readline-common 8.1.2-1 deb
|
||||
sed 4.8-1ubuntu2 deb
|
||||
sensible-utils 0.0.17 deb
|
||||
sysvinit-utils 3.01-1ubuntu1 deb
|
||||
tar 1.34+dfsg-1ubuntu0.1.22.04.2 deb
|
||||
tzdata 2025b-0ubuntu0.22.04.1 deb
|
||||
ubuntu-keyring 2021.03.26 deb
|
||||
usrmerge 25ubuntu2 deb
|
||||
util-linux 2.37.2-4ubuntu3.4 deb
|
||||
zlib1g 1:1.2.11.dfsg-2ubuntu9.2 deb
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [[ -z ${LSIO_NON_ROOT_USER} ]] && [[ -n ${ATTACHED_DEVICES_PERMS} ]]; then
|
||||
FILES=$(find ${ATTACHED_DEVICES_PERMS} -print 2>/dev/null)
|
||||
|
||||
for i in ${FILES}; do
|
||||
FILE_GID=$(stat -c '%g' "${i}")
|
||||
FILE_UID=$(stat -c '%u' "${i}")
|
||||
# check if user matches device
|
||||
if id -u abc | grep -qw "${FILE_UID}"; then
|
||||
echo "**** permissions for ${i} are good ****"
|
||||
else
|
||||
# check if group matches and that device has group rw
|
||||
if id -G abc | grep -qw "${FILE_GID}" && [[ $(stat -c '%A' "${i}" | cut -b 5,6) == "rw" ]]; then
|
||||
echo "**** permissions for ${i} are good ****"
|
||||
# check if device needs to be added to group
|
||||
elif ! id -G abc | grep -qw "${FILE_GID}"; then
|
||||
# check if group needs to be created
|
||||
GROUP_NAME=$(getent group "${FILE_GID}" | awk -F: '{print $1}')
|
||||
if [[ -z "${GROUP_NAME}" ]]; then
|
||||
GROUP_NAME="group$(head /dev/urandom | tr -dc 'a-z0-9' | head -c4)"
|
||||
groupadd "${GROUP_NAME}"
|
||||
groupmod -g "${FILE_GID}" "${GROUP_NAME}"
|
||||
echo "**** creating group ${GROUP_NAME} with id ${FILE_GID} ****"
|
||||
fi
|
||||
echo "**** adding ${i} to group ${GROUP_NAME} with id ${FILE_GID} ****"
|
||||
usermod -a -G "${GROUP_NAME}" abc
|
||||
fi
|
||||
# check if device has group rw
|
||||
if [[ $(stat -c '%A' "${i}" | cut -b 5,6) != "rw" ]]; then
|
||||
echo -e "**** The device ${i} does not have group read/write permissions, attempting to fix inside the container. ****"
|
||||
chmod g+rw "${i}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
|
@ -0,0 +1 @@
|
|||
oneshot
|
|
@ -0,0 +1 @@
|
|||
/etc/s6-overlay/s6-rc.d/init-device-perms/run
|
Ładowanie…
Reference in New Issue