diff --git a/README.md b/README.md index 7c0075d..1e38e8f 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,15 @@ BookWyrm is a social network for tracking your reading, talking about books, wri This project is still young and isn't, at the moment, very stable, so please proceed with caution when running in production. +Generate the admin code with 'sudo -u bookwyrm /var/www/bookwyrm/venv/bin/python3 /var/www/bookwyrm/manage.py admin_code', +and copy the admin code to use when you create your admin account. You can get your code +at any time by re-running that command. Here's an example output: +``` +******************************************* +Use this code to create your admin account: +c6c35779-af3a-4091-b330-c026610920d6 +******************************************* +``` ## Documentation and resources * Official app website: diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index c9ae32d..d0d6c25 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1 +1,11 @@ This project is still young and isn't, at the moment, very stable, so please proceed with caution when running in production. + +Generate the admin code with 'sudo -u bookwyrm /var/www/bookwyrm/venv/bin/python3 /var/www/bookwyrm/manage.py admin_code', +and copy the admin code to use when you create your admin account. You can get your code +at any time by re-running that command. Here's an example output: +``` +******************************************* +Use this code to create your admin account: +c6c35779-af3a-4091-b330-c026610920d6 +******************************************* +``` \ No newline at end of file diff --git a/scripts/backup b/scripts/backup index cea1313..9a45c9f 100755 --- a/scripts/backup +++ b/scripts/backup @@ -31,7 +31,6 @@ app=$YNH_APP_INSTANCE_NAME final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) db_name=$(ynh_app_setting_get --app=$app --key=db_name) -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) datadir=$(ynh_app_setting_get --app=$app --key=datadir) #================================================= diff --git a/scripts/restore b/scripts/restore index 05198d4..e8bd14c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -33,7 +33,6 @@ path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) datadir=$(ynh_app_setting_get --app=$app --key=datadir) #=================================================