1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Merge pull request #25 from lapineige/patch-1

Add registration config information
This commit is contained in:
Jean-Baptiste 2019-04-11 15:09:58 +02:00 committed by GitHub
commit 99dd3f0e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -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?` 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 ## Documentation
* [Official documentation](https://docs.pixelfed.org/master/) * [Official documentation](https://docs.pixelfed.org/master/)

View file

@ -92,7 +92,7 @@ ynh_install_php --phpversion="7.2" --package="$extra_pkg_dependencies"
ynh_print_info "Restoring the PostgreSQL database..." ynh_print_info "Restoring the PostgreSQL database..."
ynh_psql_test_if_first_run 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" ynh_psql_execute_file_as_root ./db.sql "$db_name"
#================================================= #=================================================