First release of my Akkoma Docker image
This commit is contained in:
21
entrypoint.sh
Normal file
21
entrypoint.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = 'pleroma' ] || [ "$1" = 'pleroma_ctl' ]
|
||||
then
|
||||
|
||||
mkdir -p /data/{uploads,static}
|
||||
mkdir -p /config
|
||||
chown -R akkoma /data /config
|
||||
|
||||
echo $0: executing \"pleroma_ctl migrate\"
|
||||
|
||||
pleroma_ctl migrate
|
||||
|
||||
echo $0: executing \"$@\"
|
||||
|
||||
exec su-exec akkoma "$@"
|
||||
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user