1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/aeneria_ynh.git synced 2024-09-03 18:06:15 +02:00

Bump to aeneria 1.1.0

This commit is contained in:
Simon Mellerin 2021-01-04 21:49:13 +01:00
parent 7c387805fe
commit a64f946383
6 changed files with 20 additions and 14 deletions

View file

@ -12,7 +12,7 @@ The idea of [æneria](https://gitlab.com/aeneria/aeneria-app) is to display ener
* Better understand our own energy consumption
* Analyse energy consumption throw weather data
**Shipped version:** 1.0.4
**Shipped version:** 1.1.0
## Screenshots

View file

@ -1,6 +1,6 @@
###> symfony/framework-bundle ###
APP_ENV=prod
APP_SECRET=app_secret_you_should_change_this_value
APP_SECRET=app_secret
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony/framework-bundle ###
@ -14,6 +14,10 @@ APP_SECRET=app_secret_you_should_change_this_value
DATABASE_URL=pgsql://database_user:database_password@localhost:5432/database_name
###< doctrine/doctrine-bundle ###
# Use this variable if your application live
# in subfolder
BASE_PATH=base_path
### aeneria features ###
# Number of places a user can create
AENERIA_USER_MAX_PLACES=-1

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://statics.aeneria.com/aeneria-app-1.0.4.tar.gz
SOURCE_SUM=900e165d2992c1349b2ed1fff8fda7ec999b78c70e6a14043800defdb715a91d
SOURCE_URL=https://statics.aeneria.com/aeneria-app-1.1.0.tar.gz
SOURCE_SUM=5902cc47a1f80ed560ea8f4bee37035d420b7f6bcd24151df417ecae6e4ebbf5
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true

View file

@ -3,10 +3,10 @@
"id": "aeneria",
"packaging_format": 1,
"description": {
"en": "A little dashboard to analyse your electricity consumption data from Linky & weather",
"fr": "Un petit tableau de bord pour analyser votre consomation d'électricité à partir des données d'un Linky et de la météo"
"en": "A little dashboard to analyse your energy consumption data from Linky & weather",
"fr": "Un petit tableau de bord pour analyser votre consomation d'énergie à partir des données d'un Linky et de la météo"
},
"version": "1.0.4~ynh1",
"version": "1.1.0~ynh1",
"url": "https://gitlab.com/aeneria/aeneria-app",
"license": "AGPL-3.0-or-later",
"maintainer": {

View file

@ -121,6 +121,7 @@ ynh_replace_string --match_string="database_name" --replace_string="${db_name}"
ynh_replace_string --match_string="database_user" --replace_string="${db_user}" --target_file="$aeneria_conf"
ynh_replace_string --match_string="database_password" --replace_string="${db_pwd}" --target_file="$aeneria_conf"
ynh_replace_string --match_string="app_secret" --replace_string="${deskey}" --target_file="$aeneria_conf"
ynh_replace_string --match_string="base_path" --replace_string="${path_url}" --target_file="$aeneria_conf"
# Restrict rights to aeneria user only
chmod 600 "$aeneria_conf"

View file

@ -141,16 +141,17 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie
ynh_script_progression --message="Configuring æneria..." --weight=1
# Copy and set aeneria dist configuration
aneria_conf="$final_path/.env"
cp ../conf/.env $aneria_conf
aeneria_conf="$final_path/.env"
cp ../conf/.env $aeneria_conf
ynh_replace_string --match_string="database_name" --replace_string="${db_name}" --target_file="$aneria_conf"
ynh_replace_string --match_string="database_user" --replace_string="${db_user}" --target_file="$aneria_conf"
ynh_replace_string --match_string="database_password" --replace_string="${db_pwd}" --target_file="$aneria_conf"
ynh_replace_string --match_string="app_secret" --replace_string="${deskey}" --target_file="$aneria_conf"
ynh_replace_string --match_string="database_name" --replace_string="${db_name}" --target_file="$aeneria_conf"
ynh_replace_string --match_string="database_user" --replace_string="${db_user}" --target_file="$aeneria_conf"
ynh_replace_string --match_string="database_password" --replace_string="${db_pwd}" --target_file="$aeneria_conf"
ynh_replace_string --match_string="app_secret" --replace_string="${deskey}" --target_file="$aeneria_conf"
ynh_replace_string --match_string="base_path" --replace_string="${path_url}" --target_file="$aeneria_conf"
# Restrict rights to aeneria user only
chmod 600 "$aneria_conf"
chmod 600 "$aeneria_conf"
#=================================================
# UPGRADE AENERIA