1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/librephotos_ynh.git synced 2024-09-03 19:36:12 +02:00

Check upgrade from last version in check_process, and fix permissions for running migrations

This commit is contained in:
Jules Bertholet 2021-03-30 09:40:44 -04:00
parent a84ad788d4
commit 20c953788a
3 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@
setup_private=1 setup_private=1
setup_public=1 setup_public=1
upgrade=1 upgrade=1
upgrade=0 from_commit=CommitHash upgrade=1 from_commit=3b5b527e26cb6b530bd51f14c791d1dc15757af4
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
port_already_use=0 port_already_use=0
@ -26,6 +26,6 @@
Email= Email=
Notification=none Notification=none
;;; Upgrade options ;;; Upgrade options
; commit=CommitHash ; commit=3b5b527e26cb6b530bd51f14c791d1dc15757af4
name=Name and date of the commit. name=Upgrade from March 29
manifest_arg=domain=DOMAIN&admin=USER&is_public=1&allow_multimedia_write=1& manifest_arg=domain=domain.tld&admin=john&is_public=1&allow_multimedia_write=1&

View file

@ -207,7 +207,7 @@ done
ynh_script_progression --message="Finalizing database..." --weight=1 ynh_script_progression --message="Finalizing database..." --weight=1
pushd $final_path || ynh_die pushd $final_path || ynh_die
chown -R root:$app $final_path chown -R $app:$app $final_path
sudo -u $app $final_path/bin/librephotos-upgrade sudo -u $app $final_path/bin/librephotos-upgrade
sudo -u $app $final_path/bin/librephotos-createadmin "$admin" "$(ynh_user_get_info $admin 'mail')" $(ynh_string_random -l 64) sudo -u $app $final_path/bin/librephotos-createadmin "$admin" "$(ynh_user_get_info $admin 'mail')" $(ynh_string_random -l 64)
for username in $(ynh_user_list); do for username in $(ynh_user_list); do

View file

@ -192,7 +192,7 @@ done
ynh_script_progression --message="Finalizing database..." --weight=1 ynh_script_progression --message="Finalizing database..." --weight=1
pushd $final_path || ynh_die pushd $final_path || ynh_die
chown -R root:$app $final_path chown -R $app:$app $final_path
sudo -u $app $final_path/bin/librephotos-upgrade sudo -u $app $final_path/bin/librephotos-upgrade
chown -R root:root $final_path chown -R root:root $final_path
popd || ynh_die popd || ynh_die