diff options
| author | yalh76 <yalh@yahoo.com> | 2022-01-31 19:35:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-31 19:35:13 +0100 |
| commit | 1739904d6799f9a10addc650ea316cf5d0cc00c9 (patch) | |
| tree | 419564b62f0afe08d88a5528e825ba899c86ecfc /scripts/install | |
| parent | df52f82e19c7f24a4dad26cb03b36f94201186a9 (diff) | |
| parent | b2e89a55dfa2102faf300d95d615f9f3ac1aac5b (diff) | |
| download | mastodon_ynh-1739904d6799f9a10addc650ea316cf5d0cc00c9.tar.gz mastodon_ynh-1739904d6799f9a10addc650ea316cf5d0cc00c9.tar.bz2 mastodon_ynh-1739904d6799f9a10addc650ea316cf5d0cc00c9.zip | |
Merge pull request #300 from YunoHost-Apps/testing
[enh] Workaround for bullseye
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/install b/scripts/install index 3100891..696d59e 100644 --- a/scripts/install +++ b/scripts/install @@ -204,17 +204,17 @@ ynh_add_systemd_config --service="$app-streaming" --template="mastodon-streaming ynh_script_progression --message="Installing Mastodon..." pushd "$final_path/live" - ynh_exec_as $app $ynh_ruby_load_path bin/bundle config deployment 'true' - ynh_exec_as $app $ynh_ruby_load_path bin/bundle config without 'development test' - ynh_exec_as $app $ynh_ruby_load_path bin/bundle install -j$(getconf _NPROCESSORS_ONLN) + ynh_exec_as $app $ynh_ruby_load_path $ld_preload bin/bundle config deployment 'true' + ynh_exec_as $app $ynh_ruby_load_path $ld_preload bin/bundle config without 'development test' + ynh_exec_as $app $ynh_ruby_load_path $ld_preload bin/bundle install -j$(getconf _NPROCESSORS_ONLN) ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install --pure-lockfile echo "SAFETY_ASSURED=1">> $config - ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path bin/bundle exec rails db:setup --quiet - ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path bin/bundle exec rails assets:precompile --quiet - ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path bin/bundle exec rake mastodon:webpush:generate_vapid_key > key.txt - ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=admin > /dev/null - ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path bin/tootctl accounts modify "$admin" --approve + ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails db:setup --quiet + ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile --quiet + ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rake mastodon:webpush:generate_vapid_key > key.txt + ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=admin > /dev/null + ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/tootctl accounts modify "$admin" --approve popd vapid_private_key=$(grep -oP "VAPID_PRIVATE_KEY=\K.+" "$final_path/live/key.txt") |
