FIX: pdlib module, Face regontion

This commit is contained in:
Shihaam Abdul Rahman 2022-11-04 14:06:35 +05:00
parent 856b9fed53
commit 84a88ba7bb
Signed by: shihaam
GPG Key ID: 1D33DF08702F2A9C
5 changed files with 40 additions and 2 deletions

26
.backup.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
set -e
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
# setting inital variables
DIR="."
BACKUPDIR="/mnt/vol2/docker-backups"
DATETIME="$(date +'%d-%m-%Y_%H-%M-%S')"
FILENAME=$(basename $(pwd))-${DATETIME}.tar.zst
#Docker down
docker compose down
#Compress files into backdir
tar --zstd -cf $BACKUPDIR/$FILENAME $DIR
#docker up
docker compose up -d
##How to decompress file
## tar -I zstd -xf bitwarden*.tar.zst

View File

@ -68,7 +68,11 @@ RUN bash -c 'apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoff
#RUN bash -c 'apt install -y php${PHPVERSION}-pcntl --no-install-recommends'
#Installing Optional PHP module requried for face recogniton
RUN bash -c 'apt install -y php${PHPVERSION}-pdlib --no-install-recommends'
#RUN bash -c 'apt install -y php-pdlib --no-install-recommends'
RUN apt install libdlib-dev -y \
&& apt auto-remove -y \
&& apt clean -y
# Delete default stuff
RUN rm -rv /var/www/html/index.nginx-debian.html \

View File

@ -6,7 +6,6 @@ ln -sv /etc/nginx/sites-available/nextcloud_nginx.conf /etc/nginx/sites-enabled/
#config php
cp -rv default_configs/etc/php /etc/
touch init/init
#Copy nextcloud to web root
cp -rv nextcloud/* /var/www/html/
@ -23,3 +22,6 @@ mkdir /tmp/nextcloudtemp
chmod -R 777 /tmp/nextcloudtemp
chown -R www-data:www-data /root/logs/nextcloud/
chown -R www-data:www-data /var/www/html/
touch init/init

View File

@ -1948,3 +1948,7 @@ ldap.max_links = -1
; List of headers files to preload, wildcard patterns allowed.
;ffi.preload=
[pdlib]
; used for face recongntion
extension="pdlib.so"

View File

@ -1948,3 +1948,5 @@ ldap.max_links = -1
; List of headers files to preload, wildcard patterns allowed.
;ffi.preload=
[pdlib]
extension="pdlib.so"