Add picapport
This commit is contained in:
parent
51e86e6b36
commit
6c4f22d566
11 changed files with 147 additions and 0 deletions
0
ressources/picapport/rootfs/DEBIAN/changelog
Normal file
0
ressources/picapport/rootfs/DEBIAN/changelog
Normal file
1
ressources/picapport/rootfs/DEBIAN/conffiles
Normal file
1
ressources/picapport/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/picapport/picapport.properties
|
8
ressources/picapport/rootfs/DEBIAN/control
Normal file
8
ressources/picapport/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,8 @@
|
|||
Package: picapport
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: default-jre
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: self-hosting photo server with photo management
|
16
ressources/picapport/rootfs/DEBIAN/postinst
Executable file
16
ressources/picapport/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
APP=picapport
|
||||
|
||||
id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d /var/lib/${APP}
|
||||
|
||||
chown ${APP}:${APP} /var/lib/${APP}/
|
||||
chown ${APP}:${APP} /var/lib/${APP}/*
|
||||
|
||||
if [[ $(systemctl list-unit-files | grep picapport.services) -eq 0 ]]
|
||||
then
|
||||
systemctl daemon-reload
|
||||
if [ "$(systemctl is-active ${APP}.service)" != "inactive" ]
|
||||
then
|
||||
systemctl restart ${APP}
|
||||
fi
|
||||
fi
|
2
ressources/picapport/rootfs/etc/default/picapport
Normal file
2
ressources/picapport/rootfs/etc/default/picapport
Normal file
|
@ -0,0 +1,2 @@
|
|||
JAVA_ARGS="-Xms256m -Xmx512m -Dpicapport.directory=data"
|
||||
PICAPPORT_CONF="-configfile=/etc/picapport/picapport.properties"
|
0
ressources/picapport/rootfs/etc/picapport/.gitkeep
Normal file
0
ressources/picapport/rootfs/etc/picapport/.gitkeep
Normal file
|
@ -0,0 +1,29 @@
|
|||
## see https://wiki.picapport.de/display/PICE/PicApport-Server+Guide
|
||||
|
||||
server.port=8080
|
||||
gui.enabled=false
|
||||
user.home=/var/lib/picapport
|
||||
picapport.directory=data
|
||||
robot.root.0.id=gallery
|
||||
robot.root.0.path=/var/lib/picapport/gallery
|
||||
#robot.check.root.before.db.remove=true
|
||||
|
||||
#server.contextpath=
|
||||
#server.bind.0=0.0.0.0
|
||||
#server.theme=a
|
||||
#server.photobuffer=3
|
||||
#server.autoupdate.photobuffer=100
|
||||
#server.external.address.for.shared.links
|
||||
#server.max.concurrent.imageio=3
|
||||
#server.max.concurrent.shares.per.session=3
|
||||
#server.cookie.timeout.seconds=8640000
|
||||
#server.session.timeout.seconds
|
||||
#server.admin.remote.command.n
|
||||
#server.admin.restart.prefix.n
|
||||
#gui.hideintray
|
||||
#thumbs.height=160
|
||||
#thumbs.mode=0
|
||||
#thumbs.num.thumbs.before.pause=250
|
||||
#db.max.photos.per.query=2000
|
||||
#user.log.access=true
|
||||
#server.ssl=false
|
4
ressources/picapport/rootfs/usr/bin/picapport
Executable file
4
ressources/picapport/rootfs/usr/bin/picapport
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
source /etc/default/picapport
|
||||
|
||||
/usr/bin/java ${JAVA_ARGS} -jar /usr/lib/picapport/picapport-headless.jar ${PICAPPORT_CONF}
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=self-hosting photo server with photo management
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
User=picapport
|
||||
Group=picapport
|
||||
ExecStart=/usr/bin/picapport
|
||||
SyslogIdentifier=picapport
|
||||
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue