mirror of
https://github.com/YunoHost-Apps/wallabag2_ynh.git
synced 2024-10-01 13:35:06 +02:00
* Upgrade to upstream version 2.4.2
This commit is contained in:
parent
5152058762
commit
eefec14615
7 changed files with 14 additions and 14 deletions
|
@ -15,7 +15,7 @@ It extracts content so that you can read it when you have time.
|
|||
|
||||
It provides a web interface, browser (Firefox / Chrome / Opera) add-ons, mobile apps (Android / iOS / Windows Phone) and even on e-reader (PocketBook / Kobo).
|
||||
|
||||
**Shipped version:** 2.3.8
|
||||
**Shipped version:** 2.4.2
|
||||
|
||||
## Screenshots
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
|||
|
||||
Sont disponibles une interface web, des add-ons pour navigateurs (Firefox / Chrome / Opera), des applications pour mobile (Android / iOS / Windows Phone) et même sur liseuse (PocketBook / Kobo).
|
||||
|
||||
**Version incluse:** 2.3.8
|
||||
**Version incluse:** 2.4.2
|
||||
|
||||
## Captures d'écran
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://static.wallabag.org/releases/wallabag-release-2.3.8.tar.gz
|
||||
SOURCE_SUM=58f319ee41828fcc4fd00a14c4ac7c16b2179a47af21e257a15938311d1426eb
|
||||
SOURCE_URL=https://static.wallabag.org/releases/wallabag-release-2.4.2.tar.gz
|
||||
SOURCE_SUM=da56ec37ed3d78a4b4132e8a248ac4997442eefaad6f831805304a8c317569d8
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=true
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "A self hostable read-it-later app",
|
||||
"fr": "Une application de lecture-plus-tard auto-hébergeable"
|
||||
},
|
||||
"version": "2.3.8~ynh3",
|
||||
"version": "2.4.2~ynh1",
|
||||
"url": "https://www.wallabag.org",
|
||||
"license": "MIT",
|
||||
"maintainer": {
|
||||
|
|
|
@ -84,9 +84,6 @@ fi
|
|||
#=================================================
|
||||
ynh_script_progression --message="Updating wallabag configuration..."
|
||||
|
||||
# Configure Wallabag instance URL
|
||||
ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name <<< "UPDATE craue_config_setting SET value = 'https://$new_domain$new_path' WHERE name = 'wallabag_url'"
|
||||
|
||||
# Change domain name in parameters.yml
|
||||
ynh_replace_string --match_string="domain_name: .*" --replace_string="domain_name: https://$new_domain$new_path" --target_file=$final_path/app/config/parameters.yml
|
||||
|
||||
|
|
|
@ -141,9 +141,6 @@ done
|
|||
# Set admin user
|
||||
$php_exec fos:user:promote --super "$admin"
|
||||
|
||||
# Configure Wallabag instance URL
|
||||
ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name <<< "UPDATE craue_config_setting SET value = 'https://$domain$path_url' WHERE name = 'wallabag_url'"
|
||||
|
||||
#=================================================
|
||||
# CONFIGURE FAIL2BAN
|
||||
#=================================================
|
||||
|
|
|
@ -172,7 +172,7 @@ then
|
|||
#=================================================
|
||||
|
||||
# Alias for php-cli execution command
|
||||
php_exec="ynh_exec_as $app php "$final_path/bin/console" --no-interaction --env=prod"
|
||||
php_exec="ynh_exec_as $app php "$final_path/bin/console" --no-interaction --env prod"
|
||||
|
||||
# Set permissions to app files
|
||||
chown -R $app: $final_path
|
||||
|
@ -181,8 +181,14 @@ then
|
|||
$php_exec doctrine:migrations:migrate
|
||||
$php_exec cache:clear
|
||||
|
||||
# Configure Wallabag instance URL
|
||||
ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name <<< "UPDATE craue_config_setting SET value = 'https://$domain$path_url' WHERE name = 'wallabag_url'"
|
||||
current_upstream_version="$(ynh_app_upstream_version --manifest="/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json")"
|
||||
if dpkg --compare-versions "2.4.2" gt "$current_upstream_version"; then
|
||||
ynh_script_progression --message="Ensuring upgrade compatibility to Wallabag 2.4.x..."
|
||||
|
||||
# Generate hashed URLs for faster check
|
||||
# TODO does it take much time... ?
|
||||
$php_exec wallabag:generate-hashed-urls
|
||||
fi
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue