Commit 0d662f87 authored by Spctrl's avatar Spctrl

upgrade: upgrade to stable branch v0.9.9

parent 606ed0de
......@@ -41,17 +41,17 @@ ynh_abort_if_errors
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
ynh_print_info "Ensuring backup compatibility"
ynh_print_info "Ensuring backwards compatibility"
# 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')
then
systemctl stop nginx
cp -rf "../conf/nginx.conf" "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_replace_string "{APP}" "$app" "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_replace_string "{PORT}" "$port" "/etc/nginx/conf.d/$domain.d/$app.conf"
# ynh_replace_string "add_header" "# add_header" "/etc/nginx/conf.d/$domain.conf" # TODO: This line seems to break the whole thing. First make it work on install, then check this out.
systemctl start nginx
# TODO: The following line seems to break the whole thing. First make it work on install, then check this out.
#ynh_replace_string "add_header" "# add_header" "/etc/nginx/conf.d/$domain.conf"
systemctl reload nginx
fi
#=================================================
......@@ -62,9 +62,11 @@ fi
ynh_print_info "Doing actual upgrade"
new_branch="v0.9.9"
systemctl stop $app
# TODO: This will have to move to the new stable branch as well
su - $app -c "cd $final_path/pleroma;git pull --no-edit;MIX_ENV=prod mix deps.get;MIX_ENV=prod mix ecto.migrate;"
su - $app -c "cd $final_path/pleroma;git pull --no-edit;git checkout $new_branch;MIX_ENV=prod mix deps.get;MIX_ENV=prod mix ecto.migrate;"
#=================================================
# RESTART PLEROMA
......
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