mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
parent
977fa62c15
commit
2fd06d45ea
9 changed files with 16 additions and 11 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Alternative front-end to YouTube
|
Alternative front-end to YouTube
|
||||||
|
|
||||||
**Shipped version:** 0.20.1~ynh11
|
**Shipped version:** 28.07.21~ynh1
|
||||||
|
|
||||||
**Demo:** https://invidious.site/
|
**Demo:** https://invidious.site/
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ Alternative front-end to YouTube
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
You can configure Invidious by modifying the configuration file `/var/www/invidious/config/config.yml` with the help of this [documentation](https://github.com/iv-org/documentation/blob/master/Configuration.md).
|
You can configure Invidious by modifying the configuration file `/var/www/invidious/config/config.yml` with the help of this [documentation](https://docs.invidious.io/Configuration.md).
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
|
|
||||||
Front-end alternatif à YouTube
|
Front-end alternatif à YouTube
|
||||||
|
|
||||||
**Version incluse :** 0.20.1~ynh11
|
**Version incluse :** 28.07.21~ynh1
|
||||||
|
|
||||||
**Démo :** https://invidious.site/
|
**Démo :** https://invidious.site/
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Front-end alternatif à YouTube
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Vous pouvez configurer Invidious en modifiant le fichier de configuration `/var/www/invidious/config/config.yaml` avec l'aide de cette [documentation](https://github.com/iv-org/documentation/blob/master/Configuration.md).
|
Vous pouvez configurer Invidious en modifiant le fichier de configuration `/var/www/invidious/config/config.yaml` avec l'aide de cette [documentation](https://docs.invidious.io/Configuration.md).
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
You can configure Invidious by modifying the configuration file `/var/www/invidious/config/config.yml` with the help of this [documentation](https://github.com/iv-org/documentation/blob/master/Configuration.md).
|
You can configure Invidious by modifying the configuration file `/var/www/invidious/config/config.yml` with the help of this [documentation](https://docs.invidious.io/Configuration.md).
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Vous pouvez configurer Invidious en modifiant le fichier de configuration `/var/www/invidious/config/config.yaml` avec l'aide de cette [documentation](https://github.com/iv-org/documentation/blob/master/Configuration.md).
|
Vous pouvez configurer Invidious en modifiant le fichier de configuration `/var/www/invidious/config/config.yaml` avec l'aide de cette [documentation](https://docs.invidious.io/Configuration.md).
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Alternative front-end to YouTube",
|
"en": "Alternative front-end to YouTube",
|
||||||
"fr": "Front-end alternatif à YouTube"
|
"fr": "Front-end alternatif à YouTube"
|
||||||
},
|
},
|
||||||
"version": "0.20.1~ynh11",
|
"version": "28.07.21~ynh1",
|
||||||
"url": "https://invidio.us/",
|
"url": "https://invidio.us/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
version_commit=5c76cdaad9da2330311e78fc4e451c40e88a9598
|
||||||
|
|
||||||
# dependencies used by the app
|
# 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 libevent-dev pkg-config libpcre3-dev"
|
pkg_dependencies="apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev libevent-dev pkg-config libpcre3-dev"
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from GitHub
|
# Download, check integrity, uncompress and patch the source from GitHub
|
||||||
git clone https://github.com/iv-org/invidious "$final_path" --quiet
|
git clone https://github.com/iv-org/invidious "$final_path" --quiet
|
||||||
|
|
||||||
|
pushd "$final_path"
|
||||||
|
git reset --hard --quiet $version_commit
|
||||||
|
popd
|
||||||
|
|
||||||
for i in $final_path/config/sql/*.sql ; do
|
for i in $final_path/config/sql/*.sql ; do
|
||||||
ynh_replace_string --match_string="kemal" --replace_string=$db_user --target_file="$i" ;
|
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" ;
|
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "$i" ;
|
||||||
|
|
|
@ -99,12 +99,11 @@ then
|
||||||
# Backup the config file in the temp dir
|
# Backup the config file in the temp dir
|
||||||
#cp -a "$final_path/config/config.yml" "$tmpdir/config.yml"
|
#cp -a "$final_path/config/config.yml" "$tmpdir/config.yml"
|
||||||
|
|
||||||
# Remove the app directory securely
|
|
||||||
#ynh_secure_remove --file=$final_path
|
|
||||||
|
|
||||||
#git clone https://github.com/iv-org/invidious "$final_path" --quiet
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
|
git fetch
|
||||||
|
#git checkout master
|
||||||
git pull
|
git pull
|
||||||
|
git reset --hard --quiet $version_commit
|
||||||
shards update && shards install
|
shards update && shards install
|
||||||
crystal build $final_path/src/invidious.cr --release
|
crystal build $final_path/src/invidious.cr --release
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue