This commit is contained in:
Thomas Legay 2023-09-02 22:51:34 +02:00
parent efdd66373e
commit 5220958c0a
18 changed files with 61 additions and 112 deletions

View file

@ -3,7 +3,7 @@
VERSION=10.4.00
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
APP=picapport
DEBIAN_VERSION_CODENAME=bullseye
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=3
main(){

View file

@ -1,10 +1,9 @@
#!/bin/bash
APP=picapport
id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d /var/lib/${APP}
id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -md /var/lib/${APP}
chown ${APP}:${APP} /var/lib/${APP}/
chown ${APP}:${APP} /var/lib/${APP}/*
chown -R ${APP}:${APP} /var/lib/${APP}/
if [[ $(systemctl list-unit-files | grep ${APP}.services) -eq 0 ]]
then