Disable update check

This commit is contained in:
Girish Ramakrishnan 2023-09-21 23:26:45 +05:30
parent f7d9238818
commit dd4bf3e639
2 changed files with 6 additions and 0 deletions

View file

@ -46,6 +46,8 @@ LDAP_METHOD=plain
SECRET_KEY_BASE= SECRET_KEY_BASE=
OTP_SECRET= OTP_SECRET=
UPDATE_CHECK_URL=
# Optionally change default language # Optionally change default language
# DEFAULT_LOCALE=de # DEFAULT_LOCALE=de

View file

@ -67,6 +67,10 @@ else
HOME=/app/data SAFETY_ASSURED=1 bundle exec rails db:migrate HOME=/app/data SAFETY_ASSURED=1 bundle exec rails db:migrate
fi fi
if ! grep -q UPDATE_CHECK_URL /app/data/env.production; then
echo -e "\nUPDATE_CHECK_URL=" >> /app/data/env.production
fi
chown -R cloudron:cloudron /tmp/mastodon /run/mastodon chown -R cloudron:cloudron /tmp/mastodon /run/mastodon
if [[ "$(stat -c '%U' /app/data)" != "cloudron" ]]; then if [[ "$(stat -c '%U' /app/data)" != "cloudron" ]]; then