mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
fix source
This commit is contained in:
parent
64bc52cf63
commit
b413a8009e
2 changed files with 12 additions and 4 deletions
|
@ -92,10 +92,10 @@ ynh_app_setting_set $app port $port
|
||||||
ynh_print_info "Adding Erlang repository..."
|
ynh_print_info "Adding Erlang repository..."
|
||||||
|
|
||||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||||
ynh_install_extra_repo "deb http://packages.erlang-solutions.com/debian jessie contrib"
|
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib" --key=https://packages.erlang-solutions.com/debian/erlang_solutions.asc
|
||||||
elif
|
elif
|
||||||
[ "$(lsb_release --codename --short)" == "stretch" ]; then
|
[ "$(lsb_release --codename --short)" == "stretch" ]; then
|
||||||
ynh_install_extra_repo "deb http://packages.erlang-solutions.com/debian stretch contrib"
|
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib" --key=https://packages.erlang-solutions.com/debian/erlang_solutions.asc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -133,7 +133,10 @@ ynh_print_info "Setting up source files ..."
|
||||||
|
|
||||||
ynh_app_setting_set $app final_path $final_path
|
ynh_app_setting_set $app final_path $final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source "$final_path/$app"
|
git clone https://git.pleroma.social/pleroma/pleroma "$final_path/$app"
|
||||||
|
pushd $final_path/$app
|
||||||
|
git checkout -b master
|
||||||
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
|
@ -116,7 +116,12 @@ path_url=$(ynh_normalize_url_path $path_url)
|
||||||
ynh_print_info "Upgrading source files..."
|
ynh_print_info "Upgrading source files..."
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source "$final_path/$app"
|
git clone --quiet https://git.pleroma.social/pleroma/pleroma "$final_path/upgrade"
|
||||||
|
pushd "$final_path/upgrade"
|
||||||
|
git checkout -b master
|
||||||
|
popd
|
||||||
|
cp -a "$final_path/upgrade/." "$final_path/$app/."
|
||||||
|
rm -r "$final_path/upgrade"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue