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 |
#!/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 |
rm -f /srv/data/var/run/atheme/atheme.pid |
||||||
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 |
|
||||||
su atheme \ |
su atheme \ |
||||||
-c "/srv/atheme/bin/atheme-services \ |
-c "/srv/atheme/bin/atheme-services \ |
||||||
-c $DATADIR/atheme.conf \ |
-n \ |
||||||
-n" |
$*" |
||||||
|
Loading…
Reference in new issue