Added logs and services.db to atheme data volume, simplified entrypoint.sh with the ability to add custom parameters for atheme and solanium
parent
eed845f0b2
commit
d4167aa0aa
@ -1,18 +1,16 @@ |
||||
#!/bin/sh |
||||
|
||||
DATADIR=/srv/data/etc |
||||
mkdir -p /srv/data/etc |
||||
|
||||
mkdir -p "$DATADIR" |
||||
for file_path in /srv/atheme/etc/*.example; do |
||||
file_name="$(basename "$file_path")" |
||||
cp -n -p "$file_path" "/srv/data/etc/${file_name%%.example}" |
||||
done |
||||
|
||||
chown atheme:atheme -R "$DATADIR" |
||||
cp -n -p -r /srv/atheme/var /srv/data/ |
||||
|
||||
if [ ! -e $DATADIR/atheme.conf ]; then |
||||
printf "Configuration file not found. Generating it..." |
||||
cp /srv/atheme/etc/atheme.conf.example $DATADIR/atheme.conf |
||||
fi |
||||
|
||||
rm -f /srv/atheme/var/atheme.pid |
||||
rm -f /srv/data/var/run/atheme/atheme.pid |
||||
su atheme \ |
||||
-c "/srv/atheme/bin/atheme-services \ |
||||
-c $DATADIR/atheme.conf \ |
||||
-n" |
||||
-n \ |
||||
$*" |
||||
|
Loading…
Reference in new issue