From 32fb4a27b7de8bc27b337e318f852083c69cb736 Mon Sep 17 00:00:00 2001 From: Georgelemental Date: Tue, 16 Feb 2021 14:03:56 -0500 Subject: [PATCH 01/12] Make `/embed/` links work properly (#8) Gives them the right headers and redirects them to the right place --- conf/nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 867b484..31c48c0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -22,5 +22,21 @@ location __PATH__/ { } location __PATH__/embed/ { + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + + proxy_pass http://127.0.0.1:3000/embed/; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $server_name; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + more_set_headers "X-Frame-Options : ALLOWALL"; } From 8d616536c19303c8ab411321ccd10f0e26291c92 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 16 Feb 2021 20:06:02 +0100 Subject: [PATCH 02/12] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index a8fdf0b..4e6faf2 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Alternative front-end to YouTube", "fr": "Front-end alternatif à YouTube" }, - "version": "0.20.1~ynh3", + "version": "0.20.1~ynh4", "url": "https://invidio.us/", "license": "GPL-3.0-only", "maintainer": { From d73aac6752420441ad78a6f99fdfd7b83776cfe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 17 Feb 2021 12:43:08 +0100 Subject: [PATCH 03/12] Testing (#9) * Make `/embed/` links work properly (#8) Gives them the right headers and redirects them to the right place --- conf/nginx.conf | 16 ++++++++++++++++ manifest.json | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 867b484..31c48c0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -22,5 +22,21 @@ location __PATH__/ { } location __PATH__/embed/ { + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + + proxy_pass http://127.0.0.1:3000/embed/; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $server_name; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + more_set_headers "X-Frame-Options : ALLOWALL"; } diff --git a/manifest.json b/manifest.json index a8fdf0b..4e6faf2 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Alternative front-end to YouTube", "fr": "Front-end alternatif à YouTube" }, - "version": "0.20.1~ynh3", + "version": "0.20.1~ynh4", "url": "https://invidio.us/", "license": "GPL-3.0-only", "maintainer": { From 2f366f7cbe0fa99205ba42a9f01c9d46e0de07be Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 21:04:16 +0100 Subject: [PATCH 04/12] fix --- conf/config.yml | 2 +- scripts/install | 31 +++++++------------------------ scripts/upgrade | 19 +++++-------------- 3 files changed, 13 insertions(+), 39 deletions(-) diff --git a/conf/config.yml b/conf/config.yml index f24ddda..ba89482 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -3,7 +3,7 @@ feed_threads: 1 db: user: __DB_NAME__ - password: __DB_PASS__ + password: __DB_PWD__ host: localhost port: 5432 dbname: __DB_NAME__ diff --git a/scripts/install b/scripts/install index c828128..e226f21 100644 --- a/scripts/install +++ b/scripts/install @@ -48,7 +48,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=2 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=is_public --value=$is_public ynh_app_setting_set --app=$app --key=language --value=$language #================================================= @@ -79,13 +78,9 @@ ynh_script_progression --message="Creating a PostgreSQL database..." --weight=2 db_name=$(ynh_sanitize_dbid --db_name=$app) db_user=$db_name -db_pwd=$(ynh_string_random --length=30) - ynh_app_setting_set --app=$app --key=db_name --value=$db_name -ynh_app_setting_set --app=$app --key=db_pwd --value=$db_pwd - ynh_psql_test_if_first_run -ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd +ynh_psql_setup_db --db_user=$db_name --db_name=$db_name #================================================= # CREATE DEDICATED USER @@ -135,15 +130,7 @@ popd || ynh_die #================================================= ynh_script_progression --message="Modifying a config file..." -cp ../conf/config.yml "$final_path/config/config.yml" - -# Main config File -ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/config/config.yml" -ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/config/config.yml" -#ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config/config.yml" -ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/config.yml" -ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/config/config.yml" - +ynh_add_config --template="../conf/config.yml" --destination="$final_path/config/config.yml" ynh_store_file_checksum --file="$final_path/config/config.yml" #================================================= @@ -151,9 +138,6 @@ ynh_store_file_checksum --file="$final_path/config/config.yml" #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/systemd.service" -ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/systemd.service" - ynh_add_systemd_config #================================================= @@ -161,8 +145,7 @@ ynh_add_systemd_config #================================================= ynh_script_progression --message="Setuping a cron..." --weight=1 -cp ../conf/cron_invidious /etc/cron.d/$app -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" +ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app" #================================================= # SETUP LOGROTATE @@ -180,7 +163,7 @@ ynh_use_logrotate ynh_script_progression --message="Securing files and directories..." --weight=1 # Set permissions to app files -chown -R $app: "$final_path" +chown -R $app: $final_path chmod 0644 /etc/logrotate.d/$app #================================================= @@ -196,17 +179,17 @@ yunohost service add $app --description="Invidious is an alternative front-end t ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +ynh_systemd_action --service_name=$app --action=start --log_path=systemd #================================================= # SETUP SSOWAT #================================================= -ynh_script_progression --message="Configuring SSOwat..." --weight=1 +ynh_script_progression --message="Configuring permissions..." --weight=1 # Make app public if necessary or protect it if [ $is_public -eq 1 ] then - ynh_permission_update --permission "main" --add "visitors" + ynh_permission_update --permission="main" --add="visitors" fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 775a170..c2c5863 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,13 +18,12 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port) language=$(ynh_app_setting_get --app=$app --key=language) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name -db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) +db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) #================================================= # CHECK VERSION @@ -54,7 +53,7 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" +ynh_systemd_action --service_name=$app --action=stop --log_path=systemd #================================================= # UPGRADE DEPENDENCIES @@ -104,14 +103,9 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Modifying a config file..." --weight=3 -cp ../conf/config.yml "$final_path/config/config.yml" +ynh_backup_if_checksum_is_different --file="$final_path/config/config.yml" -# Main config File -ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/config/config.yml" -ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/config/config.yml" -#ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config/config.yml" -ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/config.yml" -ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/config/config.yml" +ynh_add_config --template="../conf/config.yml" --destination="$final_path/config/config.yml" ynh_store_file_checksum --file="$final_path/config/config.yml" @@ -120,9 +114,6 @@ ynh_store_file_checksum --file="$final_path/config/config.yml" #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=2 -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/systemd.service" -ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/systemd.service" - # Create a dedicated systemd config ynh_add_systemd_config @@ -157,7 +148,7 @@ yunohost service add $app --description="Invidious is an alternative front-end t #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" +ynh_systemd_action --service_name=$app --action=restart --log_path=systemd #================================================= # RELOAD NGINX From b5abf037b6c875ba3f4658aae24b00f1019af581 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 21:04:43 +0100 Subject: [PATCH 05/12] Update restore --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 65fc421..7f7b4c9 100644 --- a/scripts/restore +++ b/scripts/restore @@ -31,7 +31,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name -db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) +db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) #================================================= # CHECK IF THE APP CAN BE RESTORED From 5306b898f1f75f5bf1ab9e4e18d4eb1d51e5466b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 21:25:48 +0100 Subject: [PATCH 06/12] Update install --- scripts/install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index e226f21..3ffd96c 100644 --- a/scripts/install +++ b/scripts/install @@ -69,7 +69,10 @@ ynh_script_progression --message="Installing dependencies..." --weight=9 ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies # Install Crystal -ynh_install_extra_app_dependencies --repo="deb https://dist.crystal-lang.org/apt crystal main" --package="crystal" --key="https://keybase.io/crystal/pgp_keys.asc" +#ynh_install_extra_app_dependencies --repo="deb https://dist.crystal-lang.org/apt crystal main" --package="crystal" --key="https://keybase.io/crystal/pgp_keys.asc" + +apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D4 +ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all nightly" --append #================================================= # CREATE A POSTGRESQL DATABASE From b3de417016d2f018a1145170b1d47d966b9d8551 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 21:40:32 +0100 Subject: [PATCH 07/12] Fix --- manifest.json | 10 ---------- scripts/install | 8 ++++---- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/manifest.json b/manifest.json index 4e6faf2..5c7b682 100644 --- a/manifest.json +++ b/manifest.json @@ -30,16 +30,6 @@ }, "example": "domain.org" }, - { - "name": "path", - "type": "path", - "ask": { - "en": "Choose a path for Invidious", - "fr": "Choisissez un chemin pour Invidious" - }, - "example": "/", - "default": "/" - }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 3ffd96c..aebe0f1 100644 --- a/scripts/install +++ b/scripts/install @@ -46,9 +46,9 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url #================================================= ynh_script_progression --message="Storing installation settings..." --weight=2 -ynh_app_setting_set --app=$app --key=domain --value=$domain -ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=language --value=$language +ynh_app_setting_set --app=$app --key=domain --value=$domain +ynh_app_setting_set --app=$app --key=path --value=$path_url +ynh_app_setting_set --app=$app --key=language --value=$language #================================================= # STANDARD MODIFICATIONS @@ -71,7 +71,7 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies # Install Crystal #ynh_install_extra_app_dependencies --repo="deb https://dist.crystal-lang.org/apt crystal main" --package="crystal" --key="https://keybase.io/crystal/pgp_keys.asc" -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D4 +apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all nightly" --append #================================================= From 7e3ef5aa1dfc97c5727fbb48dd253493ea3ec8eb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 21:58:02 +0100 Subject: [PATCH 08/12] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index aebe0f1..1dffaae 100644 --- a/scripts/install +++ b/scripts/install @@ -72,7 +72,7 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies #ynh_install_extra_app_dependencies --repo="deb https://dist.crystal-lang.org/apt crystal main" --package="crystal" --key="https://keybase.io/crystal/pgp_keys.asc" apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 -ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all nightly" --append +ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append #================================================= # CREATE A POSTGRESQL DATABASE From 4210dfb67976f12648a8e5c7ad8be4fab8ba0db5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 22:02:35 +0100 Subject: [PATCH 09/12] Fix --- scripts/_common.sh | 2 +- scripts/install | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index eddc170..8f6e28d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= # dependencies used by the app -pkg_dependencies="apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev" +pkg_dependencies="crystal apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev" #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index 1dffaae..a2b505c 100644 --- a/scripts/install +++ b/scripts/install @@ -66,14 +66,14 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= ynh_script_progression --message="Installing dependencies..." --weight=9 -ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies - # Install Crystal #ynh_install_extra_app_dependencies --repo="deb https://dist.crystal-lang.org/apt crystal main" --package="crystal" --key="https://keybase.io/crystal/pgp_keys.asc" apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append +ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies + #================================================= # CREATE A POSTGRESQL DATABASE #================================================= From cf6c93a7b75a9fbac9b2c321e9de6c3591d1e73b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 22:41:13 +0100 Subject: [PATCH 10/12] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index a2b505c..366ef6e 100644 --- a/scripts/install +++ b/scripts/install @@ -69,7 +69,7 @@ ynh_script_progression --message="Installing dependencies..." --weight=9 # Install Crystal #ynh_install_extra_app_dependencies --repo="deb https://dist.crystal-lang.org/apt crystal main" --package="crystal" --key="https://keybase.io/crystal/pgp_keys.asc" -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 +ynh_exec_warn_less apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies From 39ecbefa0f62b163abe215c54027c2f1fe36d223 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 22:50:12 +0100 Subject: [PATCH 11/12] Fix --- scripts/install | 3 --- scripts/upgrade | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 366ef6e..e1ea2bc 100644 --- a/scripts/install +++ b/scripts/install @@ -66,9 +66,6 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= ynh_script_progression --message="Installing dependencies..." --weight=9 -# Install Crystal -#ynh_install_extra_app_dependencies --repo="deb https://dist.crystal-lang.org/apt crystal main" --package="crystal" --key="https://keybase.io/crystal/pgp_keys.asc" - ynh_exec_warn_less apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append diff --git a/scripts/upgrade b/scripts/upgrade index c2c5863..5d01812 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -60,10 +60,10 @@ ynh_systemd_action --service_name=$app --action=stop --log_path=systemd #================================================= ynh_script_progression --message="Upgrading dependencies..." --weight=8 -ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies +ynh_exec_warn_less apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 +ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append -# Install Crystal -ynh_install_extra_app_dependencies --repo="deb https://dist.crystal-lang.org/apt crystal main" --package="crystal" --key="https://keybase.io/crystal/pgp_keys.asc" +ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE From d642884109351d362a0edf1129c73d355b2bdad4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Mar 2021 23:54:12 +0100 Subject: [PATCH 12/12] Fix --- manifest.json | 2 +- pull_request_template.md | 4 +--- scripts/restore | 7 +++++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 5c7b682..9c6cf12 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Alternative front-end to YouTube", "fr": "Front-end alternatif à YouTube" }, - "version": "0.20.1~ynh4", + "version": "0.20.1~ynh5", "url": "https://invidio.us/", "license": "GPL-3.0-only", "maintainer": { diff --git a/pull_request_template.md b/pull_request_template.md index 8f1777a..6c28fc5 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -13,6 +13,4 @@ ## Package_check results --- -*If you have access to [App Continuous Integration for packagers](https://yunohost.org/#/packaging_apps_ci) you can provide a link to the package_check results like below, replacing '-NUM-' in this link by the PR number and USERNAME by your username on the ci-apps-dev. Or you provide a screenshot or a pastebin of the results* - -[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/invidious_ynh%20PR-NUM-%20(USERNAME)/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/invidious_ynh%20PR-NUM-%20(USERNAME)/) +* An automatic package_check will be launch at https://ci-apps-dev.yunohost.org/, when you add a specific comment to your Pull Request: "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!"* diff --git a/scripts/restore b/scripts/restore index 7f7b4c9..73f870d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -73,7 +73,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Restoring user rights..." # Restore permissions on app files -chown -R $app: "$final_path" +chown -R $app: $final_path #================================================= # SPECIFIC RESTORATION @@ -82,6 +82,9 @@ chown -R $app: "$final_path" #================================================= ynh_script_progression --message="Reinstalling dependencies..." --weight=7 +ynh_exec_warn_less apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 +ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append + # Define and install dependencies ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies @@ -114,7 +117,7 @@ yunohost service add $app --description="Invidious is an alternative front-end t #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +ynh_systemd_action --service_name=$app --action=start --log_path=systemd #================================================= # RESTORE VARIOUS FILES