hometown-mastodon/root/etc/cont-init.d/50-config

21 lines
432 B
Text
Raw Normal View History

2022-11-08 09:05:24 +00:00
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
2022-11-15 09:27:26 +00:00
# Disable php-fpm service as Mastodon doesn't use it
touch /etc/services.d/php-fpm/down
2022-11-08 09:05:24 +00:00
mkdir -p \
/app/www/tmp \
/config/mastodon/public/system
chown -R abc:abc \
/app/www/tmp
ln -s /config/mastodon/public/system /app/www/public/system
cd /app/www/ || exit 1
s6-setuidgid abc /usr/bin/bundle exec rails db:prepare
2022-11-27 21:35:34 +00:00
chown abc:abc /config/mastodon/public/system