1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/chitchatter_ynh.git synced 2024-09-03 18:15:59 +02:00

Merge pull request #7 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2023-03-12 12:57:44 +01:00 committed by GitHub
commit 135575ecc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 27 additions and 43 deletions

View file

@ -27,7 +27,7 @@ Chitchatter is a free (as in both price and freedom) communication tool. It is d
- Ephemeral - Ephemeral
- Decentralized - Decentralized
**Shipped version:** 1.0~ynh4 **Shipped version:** 1.0~ynh5
**Demo:** https://chitchatter.im/ **Demo:** https://chitchatter.im/

View file

@ -27,7 +27,7 @@ Chitchatter is a free (as in both price and freedom) communication tool. It is d
- Ephemeral - Ephemeral
- Decentralized - Decentralized
**Version incluse :** 1.0~ynh4 **Version incluse :** 1.0~ynh5
**Démo :** https://chitchatter.im/ **Démo :** https://chitchatter.im/

View file

@ -1,24 +0,0 @@
;; Test complet
; Manifest
domain="domain.tld"
path="/"
is_public=1
; Checks
pkg_linter=1
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=1
setup_public=1
upgrade=1
#upgrade=1 from_commit=CommitHash
backup_restore=1
multi_instance=1
change_url=1
;;; Options
Email=
Notification=none
;;; Upgrade options
; commit=CommitHash
name=Name and date of the commit.
manifest_arg=domain=DOMAIN&path=PATH&is_public=1&language=fr&admin=USER&password=pass&port=666&

View file

@ -1,7 +0,0 @@
SOURCE_URL=https://github.com/jeremyckahn/chitchatter/archive/99a9ab783815e3bddeebd0de8ad74d010e5162b1.tar.gz
SOURCE_SUM=35d5521e0e96f9271f2437bae29af1f7edfe293d80be4353fbefdcccdbfe8258
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=chitchatter
SOURCE_EXTRACT=true

View file

@ -5,7 +5,7 @@ name = "Chitchatter"
description.en = "Peer-to-peer chat that is serverless, decentralized, and ephemeral" description.en = "Peer-to-peer chat that is serverless, decentralized, and ephemeral"
description.fr = "Chat peer-to-peer sans serveur, décentralisée et éphémère" description.fr = "Chat peer-to-peer sans serveur, décentralisée et éphémère"
version = "1.0~ynh4" version = "1.0~ynh5"
maintainers = ["eric_G"] maintainers = ["eric_G"]
@ -16,13 +16,13 @@ demo = "https://chitchatter.im/"
code = "https://github.com/jeremyckahn/chitchatter" code = "https://github.com/jeremyckahn/chitchatter"
[integration] [integration]
yunohost = ">= 11.1.11" yunohost = ">= 11.1.15"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = false ldap = false
sso = false sso = false
disk = "50M" disk = "50M"
ram.build = "50M" ram.build = "2800M"
ram.runtime = "50M" ram.runtime = "50M"
[install] [install]
@ -35,6 +35,7 @@ ram.runtime = "50M"
default = "visitors" default = "visitors"
[resources] [resources]
[resources.system_user] [resources.system_user]
[resources.install_dir] [resources.install_dir]

View file

@ -8,6 +8,7 @@
# nodejs version # nodejs version
nodejs_version=16 nodejs_version=16
version_commit=442f5406ec26d001798c1a2b5a5d9a05fdc77459
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -21,10 +21,18 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#================================================= #=================================================
ynh_script_progression --message="Setting up source files..." --weight=4 ynh_script_progression --message="Setting up source files..." --weight=4
# Download, check integrity, uncompress and patch the source from GitHub mkdir -p "$install_dir"
ynh_setup_source --dest_dir="$install_dir" chown -R $app:www-data "$install_dir"
git config --system --add safe.directory $install_dir
# Download, check integrity, uncompress and patch the source from GitHub
git clone https://github.com/jeremyckahn/chitchatter "$install_dir" --quiet
pushd "$install_dir"
git reset --hard --quiet $version_commit
popd
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"

View file

@ -21,13 +21,18 @@ upgrade_type=$(ynh_check_app_version_changed)
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src pushd $install_dir
ynh_setup_source --dest_dir="$install_dir" chown -R $app:www-data "$install_dir"
git config --system --add safe.directory $install_dir
ynh_exec_as $app git fetch
ynh_exec_as $app git reset --hard --quiet $version_commit
ynh_exec_as $app git pull
popd
fi fi
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"