diff --git a/conf/.env b/conf/.env index 458308b..8d7ab31 100644 --- a/conf/.env +++ b/conf/.env @@ -68,7 +68,7 @@ APP_DEFAULT_LOCALE=language # Ability to disable signups on your instance. # Can be true or false. Default to false. -APP_DISABLE_SIGNUP=true +APP_DISABLE_SIGNUP=false # Enable user email verification. APP_SIGNUP_DOUBLE_OPTIN=false diff --git a/scripts/install b/scripts/install index d8c7a90..f2dc7ba 100755 --- a/scripts/install +++ b/scripts/install @@ -141,14 +141,8 @@ ynh_replace_string --match_string="language" --replace_string="$language" --targ ynh_script_progression --message="Deploying..." pushd "$final_path" - php$phpversion artisan down --retry="10" - php$phpversion artisan config:clear - php$phpversion artisan route:clear - php$phpversion artisan view:clear - php$phpversion artisan storage:link php$phpversion artisan monica:update --force - php$phpversion artisan passport:keys -n - php artisan passport:client --personal --no-interaction + php$phpversion artisan setup:production --email=$email --password=$password -vvv -n php$phpversion artisan passport:client --password -n > key.txt mobile_id=$( cd $final_path && tail -2 key.txt | head -1 | cut -c 12- ) mobile_key=$( cd $final_path && tail -1 key.txt | cut -c 16- ) @@ -221,12 +215,14 @@ echo " | Welcome to Monica | ----------------------------------------------------------- -|You can now log in to your account +| You can now sign in to your account: +| username: $email +| password: $password | URL: https://$domain +| It is advised to change your password after first login. ----------------------------------------------------------- Setup is done. Have fun. - " > mail_to_send ynh_send_readme_to_admin --app_message="mail_to_send" --type="install" --recipients="$email" diff --git a/scripts/upgrade b/scripts/upgrade index fc79668..cd9802e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -188,7 +188,6 @@ if [ -f $final_path/storage/oauth-private.key ]; then ynh_replace_string --match_string="__KEY__" --replace_string="$mobile_key" --target_file="$config" else pushd "$final_path" - php$phpversion artisan down --retry="10" php$phpversion artisan passport:keys php$phpversion artisan passport:client --password -n > key.txt mobile_id=$( tail -2 key.txt | head -1 | cut -c 12- )