mirror of
https://github.com/glauth/glauth.git
synced 2026-10-25 13:40:48 +00:00
e7195ed983
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de> Co-authored-by: Zhou Wenzong <wenzong@users.noreply.github.com> Co-authored-by: Jairo Llopis <Yajo@users.noreply.github.com> Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz> Co-authored-by: Nicolai Willems <172633+nwillems@users.noreply.github.com> Co-authored-by: Thibault Soubiran <soubi.thibault@gmail.com> Co-authored-by: Clement JACOB <clems71@gmail.com> Co-authored-by: Lutz Horn <code@lhorn.de> Co-authored-by: Márk Sági-Kazár <sagikazarmark@users.noreply.github.com> Co-authored-by: Peter Heise <pheise@koprolalie.com> Co-authored-by: Ben Yanke <ben@benyanke.com> Co-authored-by: fanlix <fanlix@gmail.com> Co-authored-by: Hank Donnay <hdonnay@gmail.com>
30 lines
597 B
Bash
Executable File
30 lines
597 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Copy config file if it doesn't exist so that the app can start
|
|
if [ ! -f /app/config/config.cfg ] ; then
|
|
echo "Config file not found at /app/config/config.cfg"
|
|
echo "Copying example configuration file to run."
|
|
mkdir -p /app/config
|
|
cp /app/docker/default-config-standalone.cfg /app/config/config.cfg || exit 1
|
|
fi
|
|
|
|
|
|
echo "";
|
|
echo "Version and build information:";
|
|
echo "";
|
|
|
|
# Output version string to logs
|
|
/app/glauth --version
|
|
|
|
|
|
echo "";
|
|
echo "Starting GLauth now.";
|
|
echo "";
|
|
|
|
# Run app
|
|
/app/glauth -c /app/config/config.cfg
|
|
|
|
echo ""
|
|
echo "GLauth has exited."
|
|
echo "Exiting."
|