1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

Upgrade to 1.2.0

This commit is contained in:
yalh76 2019-03-18 20:31:45 +01:00
parent cdcef538e7
commit acb8124b7d
7 changed files with 13 additions and 15 deletions

View file

@ -11,7 +11,7 @@ A distributed pastebin. i.e. it is a service where anyone can post things on the
A networked place to store posted web documents. This is meant to allow for distributed social commentary and reaction around these documents using best practices recommended or noted by the W3C Social Web Working Group. A networked place to store posted web documents. This is meant to allow for distributed social commentary and reaction around these documents using best practices recommended or noted by the W3C Social Web Working Group.
**Shipped version:** 1.0 **Shipped version:** 1.2.0
## Screenshots ## Screenshots

View file

@ -1,5 +1,5 @@
SOURCE_URL=url of app's source SOURCE_URL=https://github.com/gobengo/distbin/archive/v1.2.0.tar.gz
SOURCE_SUM=sha256 checksum SOURCE_SUM=ae72d386e9c68afa4d6b08f0a9c9b441a04176001beb226b903f924076e5cfcb
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Distributed pastebin with ActivityPub.", "en": "Distributed pastebin with ActivityPub.",
"fr": "Pastebin distribué utilisant le protocole ActivityPub." "fr": "Pastebin distribué utilisant le protocole ActivityPub."
}, },
"version": "1.0~ynh6", "version": "1.2.0~ynh1",
"url": "https://example.com", "url": "https://example.com",
"license": "Apache-2.0", "license": "Apache-2.0",
"maintainer": { "maintainer": {

View file

@ -5,7 +5,7 @@
#================================================= #=================================================
# dependencies used by the app # dependencies used by the app
pkg_dependencies="ca-certificates" pkg_dependencies="ca-certificates curl sudo"
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -102,7 +102,7 @@ ynh_print_info "Installing dependencies ..."
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script ### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs 8 ynh_install_nodejs 10
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
@ -115,8 +115,7 @@ 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" ynh_setup_source "$final_path"
git clone https://github.com/gobengo/distbin "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -150,6 +149,8 @@ chown -R "$app":"$app" "/var/log/$app"
#================================================= #=================================================
mkdir -p "$final_path/distbin-db" mkdir -p "$final_path/distbin-db"
mkdir -p "$final_path/distbin-db/activities"
mkdir -p "$final_path/distbin-db/inbox"
#================================================= #=================================================
# MAKE SETUP # MAKE SETUP

View file

@ -90,7 +90,7 @@ ynh_print_info "Reinstalling dependencies..."
# Define and install dependencies # Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs 8 ynh_install_nodejs 10
#================================================= #=================================================
# RESTORE SYSTEMD # RESTORE SYSTEMD

View file

@ -82,11 +82,7 @@ ynh_systemd_action --action=stop --service_name=$app
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" ynh_setup_source "$final_path"
git clone --quiet https://github.com/gobengo/distbin "$final_path/upgrade"
cp -a "$final_path/upgrade/." "$final_path/."
rm -r "$final_path/upgrade"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -102,7 +98,8 @@ ynh_add_nginx_config
ynh_print_info "Upgrading dependencies..." ynh_print_info "Upgrading dependencies..."
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs 8 ynh_remove_nodejs
ynh_install_nodejs 10
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER