diff options
| author | yalh76 <yalh@yahoo.com> | 2019-08-04 00:50:29 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-08-04 00:50:29 +0200 |
| commit | f265a66e5231d298f8a2dffd91e1f2a51da52429 (patch) | |
| tree | f890363cde1b5196ede6381426ec84885b9a27d1 /scripts/install | |
| parent | 6f5fec437c9874e289cbd0f68b0e109e02cbccdf (diff) | |
| download | mastodon_ynh-f265a66e5231d298f8a2dffd91e1f2a51da52429.tar.gz mastodon_ynh-f265a66e5231d298f8a2dffd91e1f2a51da52429.tar.bz2 mastodon_ynh-f265a66e5231d298f8a2dffd91e1f2a51da52429.zip | |
Remove sending mail
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/scripts/install b/scripts/install index 0991cbc..3a4b517 100644 --- a/scripts/install +++ b/scripts/install @@ -9,7 +9,6 @@ source _common.sh source ynh_install_ruby source ynh_add_extra_apt_repos__3 -source ynh_send_readme_to_admin__2 source /usr/share/yunohost/helpers #================================================= @@ -185,12 +184,9 @@ pushd "$final_path/live" sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.1/bin/bundle exec rails db:migrate --quiet sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.1/bin/bundle exec rails assets:precompile --quiet sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.1/bin/bundle exec rake mastodon:webpush:generate_vapid_key > key.txt - sudo -u "$app" env PATH=$PATH RAILS_ENV=production bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=admin > acc.txt + sudo -u "$app" env PATH=$PATH RAILS_ENV=production bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=admin > /dev/null 2>&1 popd -admin_pass=$( tail -1 $final_path/live/acc.txt | head -1 | cut -c 15- ) -ynh_secure_remove --file="$final_path/live/acc.txt" - vapid_private_key=$(grep -oP "VAPID_PRIVATE_KEY=\K\w+" "$final_path/live/key.txt") vapid_public_key=$(grep -oP "VAPID_PUBLIC_KEY=\K\w+" "$final_path/live/key.txt") @@ -280,18 +276,6 @@ ynh_script_progression --message="Reloading nginx web server..." --weight=2 ynh_systemd_action --service_name=nginx --action=reload #================================================= -# SEND A README FOR THE ADMIN -#================================================= -ynh_script_progression --message="Sending a readme for the admin..." --weight=17 - -ynh_replace_string --match_string="__ADMIN_MAIL__" --replace_string="$admin_mail" --target_file="../conf/message" -ynh_replace_string --match_string="__ADMIN_PASS__" --replace_string="$admin_pass" --target_file="../conf/message" -ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/message" -ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="../conf/message" - -ynh_send_readme_to_admin --app_message="../conf/message" --recipients=$admin_mail --type='install' - -#================================================= # END OF SCRIPT #================================================= |
