mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
12 lines
467 B
Bash
12 lines
467 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 && su lutim -c "carton exec hypnotoad -f /lutim/script/lutim"
|