archives/mastodon: new aport

This commit is contained in:
Antoine Martin 2024-08-09 22:27:59 -04:00
parent 9f6c072b60
commit e7773e8def
Signed by: ayakael
GPG key ID: D62A472A4AA7D541
10 changed files with 445 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/bin/sh
BUNDLE_DIR='/usr/lib/bundles/mastodon'
export RAILS_ENV='production'
export NODE_ENV='production'
export EXECJS_RUNTIME='Disabled'
cd $BUNDLE_DIR
if [ "$(id -un)" != 'mastodon' ]; then
exec su mastodon -c '"$0" "$@"' -- bin/__COMMAND__ "$@"
else
exec bin/__COMMAND__ "$@"
fi