Skip to content

Commit

Permalink
Merge pull request #34 from YunoHost-Apps/testing
Browse files Browse the repository at this point in the history
  • Loading branch information
autra authored May 21, 2022
2 parents ee7996e + 4986e64 commit f6bc222
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 16 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in

Distributed social networking service

**Shipped version:** 0.7.16.0~ynh1
**Shipped version:** 0.7.17.0~ynh1



Expand All @@ -26,6 +26,7 @@ Distributed social networking service
- There is currently no LDAP integration
- the installation is very long, especially the frontend building step
- As upstream doesn't support it, there is no possibility to change the endpoint/url of diaspora\*. Please choose it carefully!
- The main permission should be granted to "visitors". In other term, diaspora is intented to be a public application. Only deviate from that if you know what you are doing!

## Documentation and resources

Expand Down
3 changes: 2 additions & 1 deletion README_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour

Service de réseau social distribué

**Version incluse :** 0.7.16.0~ynh1
**Version incluse :** 0.7.17.0~ynh1



Expand All @@ -22,6 +22,7 @@ Service de réseau social distribué
- Il n'y a pas d'intégration LDAP pour le moment.
- L'installation est très longue, en particulier l'étape de build du frontend.
- le projet amont ne supporte pas les changements d'url, ainsi l'application yunohost ne supporte pas non plus cette action.
- Le groupe visiteur doit avoir la permission "diaspora.main". En d'autres termes, diaspora est supposé être une application publique. Ne changez cela que si vous savez ce que vous faîtes !

## Documentations et ressources

Expand Down
1 change: 1 addition & 0 deletions check_process
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
setup_root=1
setup_nourl=0
upgrade=1
upgrade=1 from_commit=0.7.16.0-ynh1
backup_restore=1
multi_instance=1
port_already_use=0
Expand Down
1 change: 1 addition & 0 deletions doc/DISCLAIMER.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- There is currently no LDAP integration
- the installation is very long, especially the frontend building step
- As upstream doesn't support it, there is no possibility to change the endpoint/url of diaspora\*. Please choose it carefully!
- The main permission should be granted to "visitors". In other term, diaspora is intented to be a public application. Only deviate from that if you know what you are doing!
1 change: 1 addition & 0 deletions doc/DISCLAIMER_fr.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Il n'y a pas d'intégration LDAP pour le moment.
- L'installation est très longue, en particulier l'étape de build du frontend.
- le projet amont ne supporte pas les changements d'url, ainsi l'application yunohost ne supporte pas non plus cette action.
- Le groupe visiteur doit avoir la permission "diaspora.main". En d'autres termes, diaspora est supposé être une application publique. Ne changez cela que si vous savez ce que vous faîtes !
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"en": "Distributed social networking service",
"fr": "Service de réseau social distribué"
},
"version": "0.7.16.0~ynh1",
"version": "0.7.17.0~ynh1",
"url": "https://diasporafoundation.org",
"upstream": {
"license": "AGPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
pkg_dependencies="build-essential cmake libssl-dev libcurl4-dev libxml2-dev libxslt-dev imagemagick ghostscript curl libmagickwand-dev git libpq-dev redis-server nodejs postgresql bison "
ruby_build_dependencies="bison libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libyaml-dev pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev libjemalloc-dev"

current_tag="v0.7.16.0"
current_tag="v0.7.17.0"
6 changes: 3 additions & 3 deletions scripts/create_services
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ systemctl restart ${app}.target
ynh_systemd_action --service_name=${app}_web.service \
--action=restart\
--log_path="$final_path/diaspora/log/production.log" \
--line_match="Starting processing"
--line_match="successfully configured the federation library"
ynh_systemd_action --service_name=${app}_sidekiq.service \
--action=restart\
--log_path="$final_path/diaspora/log/unicorn-stderr.log" \
--line_match="listening on addr"
--log_path="systemd" \
--line_match="Running in ruby"
7 changes: 3 additions & 4 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ source ./install_ruby
# Download, check integrity, unucompress and patch the source from app.src
pushd $final_path
ynh_script_progression --message="Download the sources..." --weight=10
sudo -u $app git clone https://github.com/diaspora/diaspora.git -b $current_tag
ynh_exec_warn_less sudo -u $app git clone https://github.com/diaspora/diaspora.git -b $current_tag
popd

#=================================================
Expand All @@ -111,7 +111,7 @@ ynh_script_progression --message="Creating database..." --weight=1
db_name=$(ynh_sanitize_dbid $app)
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
ynh_psql_test_if_first_run
ynh_psql_setup_db --db_user=$db_name --db_name=$db_name
ynh_exec_warn_less ynh_psql_setup_db --db_user=$db_name --db_name=$db_name
db_pass=$(ynh_app_setting_get --app=$app --key=psqlpwd)

#=================================================
Expand Down Expand Up @@ -170,8 +170,7 @@ yunohost service add $app.target \
#=================================================
# SETUP SSOWAT
#=================================================


ynh_permission_update --permission "main" --add visitors

#=================================================
# CREATE AN ADMIN
Expand Down
8 changes: 4 additions & 4 deletions scripts/install_ruby
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
pushd $final_path
if [ -x Experimental_helpers ]; then
pushd Experimental_helpers
git fetch
ynh_exec_warn_less git fetch
popd
else
git clone https://github.com/YunoHost-Apps/Experimental_helpers.git
ynh_exec_warn_less git clone https://github.com/YunoHost-Apps/Experimental_helpers.git
fi
pushd Experimental_helpers
git checkout 606b60cf6bb3906d32020392f0a824d1f9971e96
ynh_exec_warn_less git checkout d05b4db
source ./ynh_install_ruby/ynh_install_ruby
popd
popd
ynh_install_ruby --ruby_version=2.6.6
ynh_exec_warn_less ynh_install_ruby --ruby_version=2.6.6

2 changes: 1 addition & 1 deletion scripts/restore
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ source ./install_ruby
# Download, check integrity, unucompress and patch the source from app.src
pushd $final_path
ynh_script_progression --message="Download the sources..." --weight=5
sudo -u $app git clone https://github.com/diaspora/diaspora.git -b $current_tag
ynh_exec_warn_less sudo -u $app git clone https://github.com/diaspora/diaspora.git -b $current_tag
popd

#=================================================
Expand Down

0 comments on commit f6bc222

Please sign in to comment.