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

Merge pull request #39 from YunoHost-Apps/testing

Testing
This commit is contained in:
yalh76 2019-03-18 22:00:18 +01:00 committed by GitHub
commit 914f2cc5c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.
**Shipped version:** 1.0
**Shipped version:** 1.2.0
## Screenshots

View file

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

View file

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

View file

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

View file

@ -102,7 +102,7 @@ ynh_print_info "Installing dependencies ..."
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs 8
ynh_install_nodejs 10
#=================================================
# 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
# Download, check integrity, uncompress and patch the source from app.src
#ynh_setup_source "$final_path"
git clone https://github.com/gobengo/distbin "$final_path"
ynh_setup_source "$final_path"
#=================================================
# 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/activities"
mkdir -p "$final_path/distbin-db/inbox"
#=================================================
# MAKE SETUP

View file

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

View file

@ -82,11 +82,7 @@ ynh_systemd_action --action=stop --service_name=$app
ynh_print_info "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src#
#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"
ynh_setup_source "$final_path"
#=================================================
# NGINX CONFIGURATION
@ -102,7 +98,8 @@ ynh_add_nginx_config
ynh_print_info "Upgrading dependencies..."
ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs 8
ynh_remove_nodejs
ynh_install_nodejs 10
#=================================================
# CREATE DEDICATED USER