fix some bugs
This commit is contained in:
@@ -24,6 +24,14 @@ if [[ ! -d /state/db ]]; then
|
||||
chmod go-rwx /state/db/data
|
||||
fi
|
||||
|
||||
function shutdown()
|
||||
{
|
||||
echo "Shutting down PostgreSQL"
|
||||
pkill postgres
|
||||
}
|
||||
|
||||
trap shutdown HUP INT QUIT ABRT KILL ALRM TERM TSTP
|
||||
|
||||
exec \
|
||||
chpst -u mastodon:mastodon \
|
||||
/usr/lib/postgresql/10/bin/postmaster -D /state/db 2>&1
|
||||
|
||||
Reference in New Issue
Block a user