diff --git a/check_process b/check_process index 62d0b95..964d604 100644 --- a/check_process +++ b/check_process @@ -17,7 +17,7 @@ setup_private=1 setup_public=1 upgrade=1 - upgrade=0 from_commit=CommitHash + upgrade=1 from_commit=3b5b527e26cb6b530bd51f14c791d1dc15757af4 backup_restore=1 multi_instance=1 port_already_use=0 @@ -26,6 +26,6 @@ Email= Notification=none ;;; Upgrade options - ; commit=CommitHash - name=Name and date of the commit. - manifest_arg=domain=DOMAIN&admin=USER&is_public=1&allow_multimedia_write=1& + ; commit=3b5b527e26cb6b530bd51f14c791d1dc15757af4 + name=Upgrade from March 29 + manifest_arg=domain=domain.tld&admin=john&is_public=1&allow_multimedia_write=1& diff --git a/scripts/install b/scripts/install index 105836f..fdfc53a 100755 --- a/scripts/install +++ b/scripts/install @@ -207,7 +207,7 @@ done ynh_script_progression --message="Finalizing database..." --weight=1 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-createadmin "$admin" "$(ynh_user_get_info $admin 'mail')" $(ynh_string_random -l 64) for username in $(ynh_user_list); do diff --git a/scripts/upgrade b/scripts/upgrade index 7c0c859..3b5f2d8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -192,7 +192,7 @@ done ynh_script_progression --message="Finalizing database..." --weight=1 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 chown -R root:root $final_path popd || ynh_die