mirror of
https://github.com/YunoHost-Apps/monica_ynh.git
synced 2024-09-03 19:46:23 +02:00
Run migration and then create account itself
This commit is contained in:
parent
59d329a797
commit
370945524e
3 changed files with 6 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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- )
|
||||
|
|
Loading…
Add table
Reference in a new issue