1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoprism_ynh.git synced 2024-09-03 19:56:41 +02:00
This commit is contained in:
Limezy 2022-11-13 14:49:51 +07:00
parent fd0efde85f
commit f7de3a3e8f

View file

@ -163,6 +163,16 @@ ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
chmod 600 "$final_path/.env"
chown $app:$app "$final_path/.env"
#=================================================
# RUNNNING DB MIGRATIONS
#=================================================
ynh_script_progression --message="Running database migrations..."
# Reset users table (after 2022.11.03)
# TODO : add a switch not to run the migration in other cases
ynh_exec_warn_less "$final_path/live/photoprism" users reset --yes
#=================================================
# SETUP SYSTEMD
#=================================================