authelia version update

This commit is contained in:
thomas 2022-03-28 22:42:52 +02:00
parent 9893d532f9
commit a36f18bb86
4 changed files with 41 additions and 6 deletions

View File

@ -25,7 +25,7 @@ chroot)
if [ -e cache/$2 ] if [ -e cache/$2 ]
then then
. ressources/$2/debmaker . ressources/$2/debmaker
debmaker_chroot cache/$2 debmaker_chroot
else else
echo no cache file echo no cache file
fi fi

View File

@ -24,11 +24,11 @@ zdebmaker_createOS(){
zdebmaker_createAppOS(){ zdebmaker_createAppOS(){
zdebmaker_getDep zdebmaker_getDep
[ -f cache/${DEBIAN_VERSION_CODENAME} ] || zdebmaker_createOS [ -f cache/${DEBIAN_VERSION_CODENAME} ] || zdebmaker_createOS
[ "${IMAGE_SIZE}" == "" ] && IMAGE_SIZE=2 [ "${IMAGE_SIZE}" == "" ] && IMAGE_SIZE=2
dd if=/dev/zero of=cache/${APP}.tmp bs=1G count=${IMAGE_SIZE} dd if=/dev/zero of=cache/${APP}.tmp bs=1G count=${IMAGE_SIZE}
sudo mkfs.ext4 cache/${APP}.tmp sudo mkfs.ext4 cache/${APP}.tmp
[ -d ${MOUNT_PATH}/${APP}/ ] || sudo mkdir -p ${MOUNT_PATH}/${APP}/ [ -d ${MOUNT_PATH}/${APP}/ ] || sudo mkdir -p ${MOUNT_PATH}/${APP}/
[ -d ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/ ] || sudo mkdir -p ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/ [ -d ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/ ] || sudo mkdir -p ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/
sudo mount cache/${APP}.tmp ${MOUNT_PATH}/${APP}/ sudo mount cache/${APP}.tmp ${MOUNT_PATH}/${APP}/
@ -72,13 +72,13 @@ debmaker_umount_proc_sys(){
} }
debmaker_chroot() { debmaker_chroot() {
OPEN_FILE=$1 OPEN_FILE=cache/$2${APP}
zdebmaker_getDep zdebmaker_getDep
debmaker_mount_proc_sys ${OPEN_FILE} ${MOUNT_PATH}/${APP}/ debmaker_mount_proc_sys ${OPEN_FILE} ${MOUNT_PATH}/${APP}/
sudo chroot ${MOUNT_PATH}/${APP}/ sudo chroot ${MOUNT_PATH}/${APP}/
debmaker_umount_proc_sys ${MOUNT_PATH}/${APP}/ debmaker_umount_proc_sys ${MOUNT_PATH}/${APP}/
} }
debmaker_run(){ debmaker_run(){
zdebmaker_getDep zdebmaker_getDep
[ -f cache/${APP} ] || zdebmaker_createAppOS [ -f cache/${APP} ] || zdebmaker_createAppOS

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=4.34.5 VERSION=4.34.6
RELEASE=1 RELEASE=1
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh

View File

@ -0,0 +1,35 @@
#!/bin/bash
VERSION=4.0.4
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=slimbookbattery
DEPOT=https://launchpad.net/~slimbook/+archive/ubuntu/slimbook/+sourcefiles/slimbookbattery/${VERSION}/slimbookbattery_${VERSION}.tar.gz
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=1
STEP="envinit prebuild build makedeb"
envinit() {
if [ $(dpkg -l | grep -e 'ii debhelper ' | wc -l) -eq 1 ];
then
apt-get update
apt-get dist-upgrade -y
else
apt install -y --no-install-recommends wget ca-certificates debhelper build-essential
fi
}
prebuild(){
wget -qO - ${DEPOT} | tar -zx -C /tmp/
}
build() {
cd /tmp/slimbookbattery-${VERSION}
dpkg-buildpackage --no-sign
}
makedeb(){
mv /tmp/slimbookbattery_${VERSION}_all.deb /tmp/dist
}