Skip to content

Commit 715343f

Browse files
authored
Symlink fix and add alias
Signed-off-by: GitHub <noreply@github.com>
1 parent e236194 commit 715343f

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

  • root
    • etc/s6-overlay/s6-rc.d/init-kimai-config
    • usr/bin

root/etc/s6-overlay/s6-rc.d/init-kimai-config/run

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mkdir -p \
2727
/config/www/var/{cache,data,log,packages,plugins,sessions}
2828

2929
rm -rf /app/www/var
30-
symlink -l /app/www/var /config/www/var
30+
ln -s /config/www/var /app/www/var
3131

3232
DB_HOST=$(php -r 'echo parse_url(getenv("DATABASE_URL"), PHP_URL_HOST);')
3333
DB_PORT=$(php -r 'echo parse_url(getenv("DATABASE_URL"), PHP_URL_PORT) ?? 3306;')
@@ -52,9 +52,8 @@ done
5252
# set lockfile to avoid DB waits for this specific container
5353
touch /dbwait.lock
5454

55-
cd /app/www || exit 1
56-
s6-setuidgid abc bin/console kimai:install -n
57-
s6-setuidgid abc bin/console kimai:update -n
58-
5955
lsiown -R abc:abc \
6056
/config/www
57+
58+
console kimai:install -n
59+
console kimai:update -n

root/usr/bin/console

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
s6-setuidgid abc cd /app/www php -d memory_limit=-1 bin/console "$*"

0 commit comments

Comments
 (0)