From 9b5bbd1c034e0f07e08fcd0131e2d59c6de7b980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 28 Mar 2022 07:53:05 +0200 Subject: [PATCH] Testing (#84) * Fix linter warnings * Update README.md * Update README.md delete App website (it's down) brought link in line 26 and 30 up to date with link to new place of documentation * Change version * Update links * Finding an available port * Add more_set_headers to NGINX conf * Silencing PostgreSQL warnings * Update nginx.conf * Update nginx.conf * Make `/embed/` links work properly (#8) Gives them the right headers and redirects them to the right place * Update manifest.json * fix * Update restore * Update install * Fix * Update install * Fix * Update install * Fix * Fix * Update check_process * Fix embeds again (#12) * Fix embeds again * Remove extra repo (#14) * Remove extra repo * Update manifest.json * Cleaning up * Patch * Fix * Fix * Fix * Update manifest.json * Update upgrade * Fix * Preserve config file and protect it * Fix permissions * Fix * Fix * fix * Update README.md (#28) .yml iso .yaml file * Fix * Update install * [autopatch] Update issue and PR templates (#32) Co-authored-by: Yunohost-Bot <> * [autopatch] Update issue and PR templates (#33) Co-authored-by: Yunohost-Bot <> * Fix * Fix * Update install * Auto-update README * Update install * Fix * Update _common.sh * Fix * Auto-update README * Fix * Fix * Create change_url * Fix * Update nginx.conf * Update check_process * Auto-update README * Auto-update README * upgrade crystal * Auto-update README * Update restore * Update upgrade * Update upgrade * Revert "Update upgrade" This reverts commit f533eb02cb99848aadab99afeb3ee5134073fab4. * Update upgrade * Update check_process * Add limitations * Auto-update README * New config file (#44) * Add config * Update check_process * From git commit (#46) * from commit * Fix doc link * Auto-update README * Update upgrade * Update config.yml * Update manifest.json * Auto-update README * Version bump (#54) * upgrade * Update restore * Add description * Auto-update README * config.yml may not exist during upgrade (#58) * Update systemd.service * Update manifest.json * Update manifest.json * Auto-update README * Reorder * Update _common.sh * Fix * Update Crystal (#63) * Update Crystal * Update install * Fix * Update _common.sh * Update _common.sh * 4.3 * Auto-update README * Upgrade * Auto-update README * Config panel (#72) * Add config panel * Update _common.sh * Fix * Auto-update README * upgrade to upstream * Auto-update README * Update _common.sh * Update manifest.json * Auto-update README * Update _common.sh * Update manifest.json * Auto-update README * Bugfix #77 by replace "shards" command (#79) * Bugfix #77 by "shards install" with "--production" See: https://github.com/iv-org/invidious/issues/2918#issuecomment-1048146335 * Upgrade to upstream * Auto-update README * Update check_process * 22.03.03 * Auto-update README * Add admin (#74) * Add admin * add email * Auto-update README * Fix * Update upgrade * Update _common.sh * Update _common.sh * Update manifest.json * Auto-update README * Fix * Update install * Fix Co-authored-by: deckname <58575263+deckname@users.noreply.github.com> Co-authored-by: Alexandre Aubin Co-authored-by: Georgelemental Co-authored-by: Jules-Bertholet Co-authored-by: clavelc <25869334+clavelc@users.noreply.github.com> Co-authored-by: YunoHost Bot Co-authored-by: Yunohost-Bot <> Co-authored-by: Jens Diemer Co-authored-by: yunohost-bot --- README.md | 2 +- README_fr.md | 2 +- conf/config.yml | 2 +- conf/logrotate | 8 -------- conf/systemd.service | 2 +- manifest.json | 2 +- scripts/_common.sh | 2 +- scripts/install | 8 +++++--- 8 files changed, 11 insertions(+), 17 deletions(-) delete mode 100644 conf/logrotate diff --git a/README.md b/README.md index 78da945..105e73f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ In addition to constituting an advantage in terms of confidentiality (the data d - Ability to subscribe to channels without creating a Google account -**Shipped version:** 22.03.03~ynh1 +**Shipped version:** 22.27.03~ynh1 **Demo:** https://invidious.site/ diff --git a/README_fr.md b/README_fr.md index a4f71fc..25fb564 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ En plus de constituer un avantage sur le plan de la confidentialité (les donné - Possibilité d'afficher les commentaires Reddit plutôt que les commentaires YouTube, - Possibilité de s'abonner aux chaines sans créer de compte Google -**Version incluse :** 22.03.03~ynh1 +**Version incluse :** 22.27.03~ynh1 **Démo :** https://invidious.site/ diff --git a/conf/config.yml b/conf/config.yml index 2276ac5..e3de0b6 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -9,7 +9,7 @@ ## This setting is MANDATORY, unless 'database_url' is used. ## db: - user: __DB_NAME__ + user: __DB_USER__ password: __DB_PWD__ host: localhost port: 5432 diff --git a/conf/logrotate b/conf/logrotate deleted file mode 100644 index d4feee7..0000000 --- a/conf/logrotate +++ /dev/null @@ -1,8 +0,0 @@ -/etc/logrotate.d/invidious.logrotate { - rotate 4 - weekly - notifempty - missingok - compress - minsize 1048576 -} diff --git a/conf/systemd.service b/conf/systemd.service index 0b5480b..23fdd32 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Invidious (An alternative YouTube front-end) +Description=Invidious: Alternative YouTube front-end After=syslog.target After=network.target diff --git a/manifest.json b/manifest.json index 0c000fa..fd5c624 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Alternative front-end to YouTube", "fr": "Front-end alternatif à YouTube" }, - "version": "22.03.03~ynh1", + "version": "22.27.03~ynh1", "url": "https://invidio.us/", "upstream": { "license": "GPL-3.0-only", diff --git a/scripts/_common.sh b/scripts/_common.sh index 333fab2..e17ef0c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -version_commit=bdfe317e20c9cc5d9e972e51d995faf59b86197d +version_commit=f4e19ac05c33f0a0995fe9cbb7678cd0b90a3149 # dependencies used by the app pkg_dependencies="apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin imagemagick libsqlite3-dev zlib1g-dev libevent-dev pkg-config libpcre3-dev" diff --git a/scripts/install b/scripts/install index 7d6b492..c45ebb1 100644 --- a/scripts/install +++ b/scripts/install @@ -98,7 +98,7 @@ db_name=$(ynh_sanitize_dbid --db_name=$app) db_user=$db_name 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_psql_setup_db --db_user=$db_user --db_name=$db_name #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -146,10 +146,12 @@ popd #================================================= # MODIFY A CONFIG FILE #================================================= -ynh_script_progression --message="Modifying a config file..." +ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_add_config --template="../conf/config.yml" --destination="$final_path/config/config.yml" -chmod 600 $final_path/config/config.yml + +chmod 600 "$final_path/config/config.yml" +chown $app:$app "$final_path/config/config.yml" #================================================= # SETUP SYSTEMD