1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

Merge pull request #120 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-02-10 18:22:25 +01:00 committed by GitHub
commit e3d9c1569c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 18 additions and 11 deletions

View file

@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Friendica is a decentralised communications platform that integrates social communication. The platform links to independent social projects and corporate services.
Friendica connects you effortlessly to a federated communications network of several thousand servers, with more than half a million user registrations. You can directly connect to anyone on Friendica, Mastodon, Diaspora, GnuSocial, Pleroma, or Hubzilla, regardless where each user profile is hosted.
**Shipped version:** 2023.05~ynh3
**Shipped version:** 2023.12~ynh1
**Demo:** https://dir.friendica.social/servers

View file

@ -19,7 +19,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Friendica is a decentralised communications platform that integrates social communication. The platform links to independent social projects and corporate services.
Friendica connects you effortlessly to a federated communications network of several thousand servers, with more than half a million user registrations. You can directly connect to anyone on Friendica, Mastodon, Diaspora, GnuSocial, Pleroma, or Hubzilla, regardless where each user profile is hosted.
**Version incluse :** 2023.05~ynh3
**Version incluse :** 2023.12~ynh1
**Démo :** https://dir.friendica.social/servers

View file

@ -5,7 +5,7 @@ name = "Friendica"
description.en = "Decentralized Social Network"
description.fr = "Réseau social décentralisé"
version = "2023.05~ynh3"
version = "2023.12~ynh1"
maintainers = []
@ -49,13 +49,13 @@ ram.runtime = "50M"
[resources.sources]
[resources.sources.main]
url = "https://github.com/friendica/friendica/archive/refs/tags/2023.05.tar.gz"
sha256 = "727a8fdab6a2f6424d3dbc895496447e750eb0f8e1e11b70f1e229a7e3c9a31d"
url = "https://github.com/friendica/friendica/archive/refs/tags/2023.12.tar.gz"
sha256 = "d55475628ae24aab1ee7ed3367d22b2fd3ee49200b5da276c69e97df2afbd943"
autoupdate.strategy = "latest_github_tag"
[resources.sources.addons]
url = "https://github.com/friendica/friendica-addons/archive/refs/tags/2023.05.tar.gz"
sha256 = "df29aed28c0208e162c76f91949d0c3a0f77fe09853fe1a6d854b9956075d8a0"
url = "https://github.com/friendica/friendica-addons/archive/refs/tags/2023.12.tar.gz"
sha256 = "d0228833584dd7dc0301ee04bd41728345c8051d84908849dea52ed04a7c8982"
[resources.system_user]

View file

@ -15,7 +15,9 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_print_info --message="Declaring files to be backed up..."
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 1)
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console.php maintenance 1)
trap "(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console.php maintenance 0)" EXIT
#=================================================
# BACKUP THE APP MAIN DIR
@ -61,8 +63,6 @@ ynh_print_info --message="Backing up the MySQL database..."
ynh_mysql_dump_db --database="$db_name" > db.sql
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 0)
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -57,6 +57,13 @@ ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
ynh_systemd_action --service_name=nginx --action=reload
#==============
# FINALIZATION
#==============
# exit maintenance mode since the app was backed up while in maintenance mode
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console.php maintenance 0)
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -65,7 +65,7 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failreg
# Run Composer
pushd "$install_dir"
ynh_exec_as "$app" php$phpversion bin/composer.phar install --no-dev --quiet
ynh_exec_as "$app" php$phpversion bin/console dbstructure update
ynh_exec_as "$app" php$phpversion bin/console.php dbstructure update
popd
#=================================================