diff options
| author | Thomas <51749973+Thovi98@users.noreply.github.com> | 2025-08-24 22:11:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-24 22:11:54 +0200 |
| commit | 9b7308681eed5b930c60dd882d6588a6fc28af37 (patch) | |
| tree | d2ac88904c43c34b0829c86dce68e96fd6fd3e1b /scripts/install | |
| parent | 9a9079042ee2923c1a5dfa59dcbe17ee3e03617d (diff) | |
| parent | 8fb1c6c7818430e8ac49f3ae589c6575614f5e4b (diff) | |
| download | mastodon_ynh-9b7308681eed5b930c60dd882d6588a6fc28af37.tar.gz mastodon_ynh-9b7308681eed5b930c60dd882d6588a6fc28af37.tar.bz2 mastodon_ynh-9b7308681eed5b930c60dd882d6588a6fc28af37.zip | |
Merge branch 'testing' into ci-auto-update-4.4.3
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install index b9d9219..7e400d5 100644 --- a/scripts/install +++ b/scripts/install @@ -22,6 +22,8 @@ ynh_nodejs_install ynh_script_progression "Setting up source files..." ynh_setup_source --dest_dir="$install_dir/live" +# Download redis migration script +ynh_setup_source --source_id=redis_migration --dest_dir="$install_dir/live" chmod -R 775 "$install_dir" chmod o-rwx "$install_dir" @@ -76,7 +78,6 @@ ynh_config_add --template=".env.production.sample" --destination="$config" ynh_script_progression "Building app..." pushd "$install_dir/live" - # Building ruby packages gem update --system gem install bundler --no-document ynh_hide_warnings ynh_exec_as_app $ld_preload bin/bundle config deployment 'true' @@ -112,10 +113,11 @@ ynh_config_add --template=".env.production.sample" --destination="$config" pushd "$install_dir/live" ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/bundle exec rails db:migrate --quiet + ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/bundle exec rails db:seed --quiet ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/bundle exec rails assets:precompile --quiet # Create the first admin user - ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=Owner > /dev/null - ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/tootctl accounts approve "$admin" > /dev/null + ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=Owner + ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/tootctl accounts approve "$admin" popd #================================================= |
