This commit is contained in:
Damir Ibragimov
2023-07-25 13:23:46 +03:00
parent e55bb58542
commit 428250524f
5 changed files with 76 additions and 1 deletions

20
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
starting() {
echo "Creating user"
bash /danted-init.sh
echo "Starting danted"
danted -p /danted.pid
}
ending() {
echo "Stopping danted"
kill -9 $(cat /danted.pid)
echo "Stopping container"
}
trap ending SIGINT SIGTERM
echo "Starting container"
starting