mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Sql (#123)
* Auto-update README * Update install * fix * fix * Delete .DS_Store * Update install * Update install * Update install * Update install * Update config.yml * Update DESCRIPTION_fr.md * Auto-update README * Update manifest.toml * Auto-update README * Update install * Update install --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
parent
1fa364f705
commit
45ac33597f
8 changed files with 41 additions and 46 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -27,7 +27,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:** 04.05.23~ynh1
|
||||
**Shipped version:** 20.05.23~ynh1
|
||||
|
||||
**Demo:** https://invidious.site/
|
||||
|
||||
|
|
|
@ -20,12 +20,13 @@ Invidious est une interface permettant d'accéder aux vidéos Youtube sans passe
|
|||
En plus de constituer un avantage sur le plan de la confidentialité (les données ne transitent pas directement par les services du géant).
|
||||
|
||||
### Fonctionnalités :
|
||||
|
||||
- Mode audio seul,
|
||||
- Mode sombre,
|
||||
- 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 :** 04.05.23~ynh1
|
||||
**Version incluse :** 20.05.23~ynh1
|
||||
|
||||
**Démo :** https://invidious.site/
|
||||
|
||||
|
|
|
@ -465,7 +465,7 @@ jobs:
|
|||
## Accepted values: a string
|
||||
## Default: <none>
|
||||
##
|
||||
#hmac_key:
|
||||
hmac_key: __KEY__
|
||||
|
||||
##
|
||||
## List of video IDs where the "download" widget must be
|
||||
|
|
|
@ -2,6 +2,7 @@ Invidious est une interface permettant d'accéder aux vidéos Youtube sans passe
|
|||
En plus de constituer un avantage sur le plan de la confidentialité (les données ne transitent pas directement par les services du géant).
|
||||
|
||||
### Fonctionnalités :
|
||||
|
||||
- Mode audio seul,
|
||||
- Mode sombre,
|
||||
- Possibilité d'afficher les commentaires Reddit plutôt que les commentaires YouTube,
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 693 KiB After Width: | Height: | Size: 474 KiB |
|
@ -5,7 +5,7 @@ name = "Invidious"
|
|||
description.en = "Alternative front-end to YouTube"
|
||||
description.fr = "Front-end alternatif à YouTube"
|
||||
|
||||
version = "04.05.23~ynh1"
|
||||
version = "20.05.23~ynh1"
|
||||
|
||||
maintainers = ["eric_G"]
|
||||
|
||||
|
@ -63,7 +63,7 @@ ram.runtime = "50M"
|
|||
api.protected = true
|
||||
|
||||
[resources.apt]
|
||||
packages = "libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin imagemagick libsqlite3-dev zlib1g-dev libevent-dev libpcre3-dev"
|
||||
packages = "dialog apt-utils libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin imagemagick libsqlite3-dev zlib1g-dev libevent-dev libpcre3-dev"
|
||||
|
||||
[resources.database]
|
||||
type = "postgresql"
|
||||
|
|
|
@ -13,6 +13,7 @@ source /usr/share/yunohost/helpers
|
|||
# RETRIEVE ARGUMENTS FROM THE MANIFEST
|
||||
#=================================================
|
||||
|
||||
key=$(ynh_string_random --length=24)
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
registration_enabled="true"
|
||||
login_enabled="true"
|
||||
|
@ -50,52 +51,12 @@ git clone https://github.com/iv-org/invidious "$install_dir" --quiet
|
|||
|
||||
pushd "$install_dir"
|
||||
git reset --hard --quiet $version_commit
|
||||
make
|
||||
popd
|
||||
|
||||
for i in $install_dir/config/sql/*.sql ; do
|
||||
ynh_replace_string --match_string="kemal" --replace_string=$db_user --target_file="$i" ;
|
||||
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "$i" ;
|
||||
done
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring NGINX web server..." --weight=3
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
# INSTALL INVIDIOUS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building Invidious.. (this will take some time and resources!)" --weight=60
|
||||
|
||||
pushd "$install_dir"
|
||||
ynh_exec_warn_less shards install --production
|
||||
ynh_exec_warn_less crystal build $install_dir/src/invidious.cr --release
|
||||
#ynh_exec_warn_less crystal build $install_dir/src/invidious.cr --Ddisable_quic --release
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding system configurations related to $app ..." --weight=10
|
||||
|
||||
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
||||
chown root: "/etc/cron.d/$app"
|
||||
chmod 644 "/etc/cron.d/$app"
|
||||
|
||||
ynh_use_logrotate
|
||||
|
||||
ynh_add_systemd_config
|
||||
|
||||
yunohost service add $app --description="Invidious is an alternative front-end to YouTube" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
#=================================================
|
||||
|
@ -106,6 +67,38 @@ ynh_add_config --template="../conf/config.yml" --destination="$install_dir/confi
|
|||
chmod 600 "$install_dir/config/config.yml"
|
||||
chown $app:$app "$install_dir/config/config.yml"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
# INSTALL INVIDIOUS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building Invidious.. (this will take some time and resources!)" --weight=60
|
||||
|
||||
pushd "$install_dir"
|
||||
./invidious --migrate
|
||||
ynh_exec_warn_less shards install --production
|
||||
ynh_exec_warn_less crystal build $install_dir/src/invidious.cr --release
|
||||
#ynh_exec_warn_less crystal build $install_dir/src/invidious.cr --Ddisable_quic --release
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding system configurations related to $app ..." --weight=10
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
||||
chown root: "/etc/cron.d/$app"
|
||||
chmod 644 "/etc/cron.d/$app"
|
||||
|
||||
ynh_use_logrotate
|
||||
|
||||
ynh_add_systemd_config
|
||||
|
||||
yunohost service add $app --description="Invidious is an alternative front-end to YouTube" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue