Merge pull request #78 from diddip21/dev

Update kimai
This commit is contained in:
Thorsten Spille 2023-05-23 21:38:10 +02:00 committed by GitHub
commit ff0df2cbff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@
LXC_TEMPLATE_VERSION="debian-11-standard" LXC_TEMPLATE_VERSION="debian-11-standard"
# Create sharefs mountpoint # Create sharefs mountpoint
LXC_MP="1" LXC_MP="0"
# Create unprivileged container # Create unprivileged container
LXC_UNPRIVILEGED="1" LXC_UNPRIVILEGED="1"
@ -29,4 +29,4 @@ KIMAI_PHP_VERSION="8.1"
LXC_MEM_MIN=1024 LXC_MEM_MIN=1024
# service dependent meta tags # service dependent meta tags
SERVICE_TAGS="php-fpm,nginx,mariadb" SERVICE_TAGS="php-fpm,nginx,mariadb"

View File

@ -150,14 +150,14 @@ APP_SECRET=$(random_password)
CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$ CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
EOF EOF
chown -R www-data:www-data .
chmod -R g+r .
chmod -R g+rw var/
bin/console kimai:install -n bin/console kimai:install -n
bin/console kimai:user:create admin admin@$LXC_DOMAIN ROLE_SUPER_ADMIN $LXC_PWD bin/console kimai:user:create admin admin@$LXC_DOMAIN ROLE_SUPER_ADMIN $LXC_PWD
chown -R www-data:www-data .
chmod -R g+r .
chmod -R g+rw var/
systemctl daemon-reload systemctl daemon-reload
systemctl enable --now php${PHP_VERSION}-fpm nginx systemctl enable --now php${PHP_VERSION}-fpm nginx
systemctl restart php${PHP_VERSION}-fpm nginx systemctl restart php${PHP_VERSION}-fpm nginx