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:
parent
a84ad788d4
commit
20c953788a
3 changed files with 6 additions and 6 deletions
|
@ -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&
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue