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/) diff --git a/scripts/restore b/scripts/restore index 6d5ccc72..6a44c838 100644 --- a/scripts/restore +++ b/scripts/restore @@ -92,7 +92,7 @@ ynh_install_php --phpversion="7.2" --package="$extra_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" #=================================================