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

Merge pull request #45 from YunoHost-Apps/testing

Testing
This commit is contained in:
Tagada 2022-05-02 09:00:11 +02:00 committed by GitHub
commit 8bbe836030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 22 additions and 18 deletions

View file

@ -42,7 +42,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
See more [on the documentation](https://glitch-soc.github.io/docs/).
**Shipped version:** 2022.03.31~ynh1
**Shipped version:** 2022.04.16~ynh1

View file

@ -38,7 +38,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Voir plus [sur la documentation](https://glitch-soc.github.io/docs/) (en anglais).
**Version incluse :** 2022.03.31~ynh1
**Version incluse :** 2022.04.16~ynh1

View file

@ -14,6 +14,8 @@
upgrade=1
# 2022.01.10~ynh2
upgrade=1 from_commit=325f6befc0d6da2b5102ad9c4ac64a5235ee470e
# 2022.03.31~ynh1
upgrade=1 from_commit=a8f28047602b498cde25bfa05137d84518f13bbe
backup_restore=1
multi_instance=0
port_already_use=0
@ -22,3 +24,5 @@
;;; Upgrade options
; commit=325f6befc0d6da2b5102ad9c4ac64a5235ee470e
name=2022.01.10~ynh2
; commit=a8f28047602b498cde25bfa05137d84518f13bbe
name=2022.03.31~ynh1

View file

@ -1,7 +1,7 @@
SOURCE_URL=https://github.com/glitch-soc/mastodon/archive/3381a0e6e050438680f38c97ac9332045b8d66f4.tar.gz
SOURCE_SUM=c3f76d504013963c2bff6336bfd4a2ec03c8619efb656ffe9597676770d7e973
SOURCE_URL=https://github.com/glitch-soc/mastodon/archive/ec4a8d81b141c46a6fa967f8416724d0162cd6c7.tar.gz
SOURCE_SUM=e4bf11cbd453998ff0a5711d2034955f06bd463e651473a6622abd50c53adb3d
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=3381a0e6e050438680f38c97ac9332045b8d66f4.tar.gz
SOURCE_FILENAME=ec4a8d81b141c46a6fa967f8416724d0162cd6c7.tar.gz
SOURCE_EXTRACT=true

View file

@ -6,7 +6,7 @@
"en": "Libre and federated social network, fork of Mastodon",
"fr": "Réseau social libre et fédéré, scission de Mastodon"
},
"version": "2022.03.31~ynh1",
"version": "2022.04.16~ynh1",
"url": "https://github.com/glitch-soc/mastodon",
"upstream": {
"license": "free",

View file

@ -93,7 +93,7 @@ ynh_app_setting_set --app=$app --key=port_stream --value=$port_stream
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=60
ynh_script_progression --message="Installing dependencies..." --weight=10
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
@ -111,7 +111,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
#=================================================
# CREATE A POSTGRESQL DATABASE
#=================================================
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=14
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=3
ynh_psql_test_if_first_run
# Create PostgreSQL database
@ -127,7 +127,7 @@ ynh_psql_execute_as_root --sql="ALTER USER $db_user CREATEDB;"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=5
ynh_script_progression --message="Setting up source files..." --weight=3
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
@ -166,7 +166,7 @@ ynh_add_swap --size=$swap_needed
#=================================================
# INSTALLING RUBY AND BUNDLER
#=================================================
ynh_script_progression --message="Installing Ruby dependencies..." --weight=6
ynh_script_progression --message="Installing Ruby dependencies..." --weight=3
pushd "$final_path/live"
ynh_use_ruby
@ -221,7 +221,7 @@ ynh_add_systemd_config --service="$app-streaming" --template="glitchsoc-streamin
#=================================================
# INSTALLING GLITCH-SOC
#=================================================
ynh_script_progression --message="Installing Glitch-Soc..." --weight=30
ynh_script_progression --message="Installing Glitch-Soc..." --weight=5
pushd "$final_path/live"
ynh_exec_as $app $ynh_ruby_load_path $ld_preload bin/bundle config deployment 'true'
@ -273,7 +273,7 @@ yunohost service add "$app-streaming" --description="$app streaming service"
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=3
ynh_script_progression --message="Starting a systemd service..." --weight=2
ynh_systemd_action --service_name=${app}-web --action="start" --log_path=systemd --line_match="Listening on"
ynh_systemd_action --service_name=${app}-sidekiq --action="start" --log_path=systemd --line_match="Schedules Loaded"

View file

@ -83,7 +83,7 @@ ynh_remove_nginx_config
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing dependencies..." --weight=30
ynh_script_progression --message="Removing dependencies..." --weight=10
# Remove metapackage and its dependencies
ynh_remove_ruby

View file

@ -75,7 +75,7 @@ chown -R $app:www-data "$final_path"
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=60
ynh_script_progression --message="Reinstalling dependencies..." --weight=10
# Define and install dependencies
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
@ -112,7 +112,7 @@ ynh_add_swap --size=$swap_needed
#=================================================
# INSTALLING RUBY AND BUNDLER
#=================================================
ynh_script_progression --message="Installing Ruby dependencies..." --weight=30
ynh_script_progression --message="Installing Ruby dependencies..." --weight=10
pushd "$final_path/live"
ynh_use_ruby

View file

@ -271,7 +271,7 @@ ynh_add_nginx_config
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_script_progression --message="Upgrading dependencies..." --weight=60
ynh_script_progression --message="Upgrading dependencies..." --weight=10
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
@ -299,7 +299,7 @@ ynh_add_swap --size=$swap_needed
#=================================================
# INSTALLING RUBY AND BUNDLER
#=================================================
ynh_script_progression --message="Installing Ruby dependencies..." --weight=6
ynh_script_progression --message="Installing Ruby dependencies..." --weight=5
pushd "$final_path/live"
ynh_use_ruby
@ -334,7 +334,7 @@ ynh_add_systemd_config --service="$app-streaming" --template="glitchsoc-streamin
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading Glitch-Soc..." --weight=30
ynh_script_progression --message="Upgrading Glitch-Soc..." --weight=10
pushd "$final_path/live"
ynh_exec_as $app $ynh_ruby_load_path $ld_preload bin/bundle config deployment 'true'