From 784657c4a05762a8afc45f5f4b985740f8c74c50 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Thu, 4 Apr 2019 11:33:20 +0200 Subject: [PATCH 1/2] Fix upgrade after restoration --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 549039d4..0e73f36a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -88,7 +88,7 @@ ynh_install_app_dependencies "$pkg_dependencies" ynh_print_info "Restoring the PostgreSQL database..." ynh_psql_test_if_first_run -ynh_psql_create_db "$db_name" "$db_name" "$db_pwd" +ynh_psql_setup_db "$db_name" "$db_name" "$db_pwd" ynh_psql_execute_file_as_root ./db.sql "$db_name" #================================================= From 18ec744550d697be745901be289f281e7efa7aba Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 9 Apr 2019 17:52:54 +0200 Subject: [PATCH 2/2] Add registration config information Some people might want to change the registration to false, for instance after creating their (single user instance) account. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 137a97f5..b71d6e9c 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,11 @@ After being first registered, you need to execute the folloing command to promot and respond yes to the question ` Add admin privileges to this user?` +### Allow/Close registration + +Registrations are open by default. +To change that setting, edit `/var/www/pixelfed/.env` and set `OPEN_REGISTRATION=false` instead of `true`. + ## Documentation * [Official documentation](https://docs.pixelfed.org/master/)