1
0
mirror of https://github.com/hoellen/dockerfiles.git synced 2025-07-27 19:35:39 +00:00
Files
boring-nginx
matomo
nextcloud
nginx-php
privatebin
searx
unmaintained
boinc
cowrie
cryptpad
freshrss
ghost
isso
kippo-graph
libresonic
lutim
Dockerfile
README.md
lutim.conf
run.sh
lychee
mastodon
mediawiki
nginx
parsoid
pgbouncer
rainloop
reverse
rtorrent-flood
rutorrent
tor
LICENSE
README.md
dockerfiles/unmaintained/lutim/run.sh
2017-01-16 22:13:29 +01:00

12 lines
472 B
Bash

#!/bin/bash
deluser lutim
addgroup --gid $GROUPID lutim
adduser --system --shell /bin/sh --no-create-home --ingroup lutim --uid $USERID lutim
sed -i -e 's/<contact>/'$CONTACT'/g' \
-e 's/<secret>/'$SECRET'/g' \
-e 's/<max_file_size>/'$MAX_FILE_SIZE'/g' \
-e 's/<domain>/'$DOMAIN'/g' \
-e 's|<webroot>|'$WEBROOT'|g' /lutim/lutim.conf
chown -R lutim:lutim /lutim /data
cd /lutim && exec su lutim -c "carton exec hypnotoad -f /lutim/script/lutim"