FIX: pdlib module, Face regontion
This commit is contained in:
parent
856b9fed53
commit
84a88ba7bb
26
.backup.sh
Executable file
26
.backup.sh
Executable 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
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -1948,3 +1948,5 @@ ldap.max_links = -1
|
||||
|
||||
; List of headers files to preload, wildcard patterns allowed.
|
||||
;ffi.preload=
|
||||
[pdlib]
|
||||
extension="pdlib.so"
|
||||
|
Loading…
x
Reference in New Issue
Block a user