Commit 01f04e7c authored by Spctrl's avatar Spctrl

Make sure all files in the app-folder are owned by the app-systemuser

parent 0d72086e
......@@ -53,6 +53,9 @@ ynh_abort_if_errors
ynh_print_info "Ensuring backwards compatibility"
# Make sure all files in the app-folder are owned by the app-systemuser
chown -R $app: $final_path
# TODO: The following lines seems to break the whole thing. First make it work on install, then check this out.
## Pleroma sets the headers so we don't need to do it
#if (cat "/etc/nginx/conf.d/$domain.d/$app.conf" | grep 'add_header')
......@@ -123,6 +126,7 @@ fi
ynh_print_info "Doing actual upgrade"
systemctl stop $app
# First we revert to the last commit, untracked files are save from this. Then we pull, I added --no-edit just to be sure.
# Then we checkout the new version and do some Pleroma magic.
# TODO: Keep track of reverted files instead of hard reset everything
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment