From 84bb76083cada8c00eaa457cf1714b24cd4dfd0c Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 4 Jan 2024 19:30:50 +0100 Subject: First admin should be Owner --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/install b/scripts/install index 1ac067f..d5976f7 100644 --- a/scripts/install +++ b/scripts/install @@ -194,7 +194,7 @@ pushd "$final_path/live" 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 create "$admin" --email="$admin_mail" --confirmed --role=Owner > /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 -- cgit v1.2.3-70-g09d2 From 2baaffafdce32e13b23b14ae5e77dbbf78c26b44 Mon Sep 17 00:00:00 2001 From: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:13:58 +0100 Subject: fix linter --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/upgrade b/scripts/upgrade index e770e63..e041939 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,9 +66,9 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=${app}-web --action="stop" --log_path=systemd --line_match="Stopped" -ynh_systemd_action --service_name=${app}-sidekiq --action="stop" --log_path=systemd --line_match="Stopped" -ynh_systemd_action --service_name=${app}-streaming --action="stop" --log_path=systemd --line_match="Stopped" +ynh_systemd_action --service_name=${app}-web --action="stop" --log_path=systemd +ynh_systemd_action --service_name=${app}-sidekiq --action="stop" --log_path=systemd +ynh_systemd_action --service_name=${app}-streaming --action="stop" --log_path=systemd #================================================= # ENSURE DOWNWARD COMPATIBILITY -- cgit v1.2.3-70-g09d2