diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md new file mode 100644 index 0000000..809cfbd --- /dev/null +++ b/doc/ADMIN_fr.md @@ -0,0 +1,14 @@ +## Configuration + +* Tout d'abord, vous aurez besoin d'un Linky et d'un [compte Enedis](https://mon-compte-client.enedis.fr/) +* Dans votre espace Enedis, rendez-vous dans l'onglet ["Gérer l'accès à mes données"](https://mon-compte-particulier.enedis.fr/donnees/), et permettez à Enedis de collecter et stocker votre consommation horaire +* Après cela, installez æneria sur votre instance Yunohost, visitez-la et suivez simplement les instructions +* Ça y est, attendez maintenant un peu pour voir les données apparaître ! + +## Venant de Pilea + +æneria est le nouveau nom de Pilea. Ce nouveau nom est accompagné d'une toute nouvelle version. + +Cette nouvelle version a introduit quelques changements majeurs dans la structure des données : la migration depuis Pilea ne peut pas se faire automatiquement. + +Vous pouvez facilement transférer vos données de Pilea vers æneria en suivant [cette documentation](https://docs.aeneria.com/fr/latest/administrateur/pilea_migration.html). \ No newline at end of file diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..b370097 --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1,4 @@ +L'idée de [æneria](https://aeneria.com) est d'afficher la consommation d'énergie et les données météorologiques sur un petit tableau de bord qui permet à l'utilisateur de : + + * Mieux comprendre sa propre consommation d'énergie + * Analyser la consommation d'énergie et les données météorologiques \ No newline at end of file diff --git a/hooks/post_app_addaccess b/hooks/post_app_addaccess index 19d6a19..cc14389 100644 --- a/hooks/post_app_addaccess +++ b/hooks/post_app_addaccess @@ -12,7 +12,7 @@ source /etc/yunohost/apps/$app/scripts/_common.sh usernames=$2 permission=$3 groups=$4 -final_path=$(ynh_app_setting_get "$app" final_path) +install_dir=$(ynh_app_setting_get "$app" install_dir) phpversion=$(ynh_app_setting_get "$app" phpversion) IFS=',' read -r -a user_list <<< "$usernames" @@ -25,7 +25,7 @@ do user_list+=("${group_array[@]}") done -pushd $final_path +pushd $install_dir for user in "${user_list[@]}" do mail=$(ynh_user_get_info --username="$user" --key=mail) diff --git a/hooks/post_app_removeaccess b/hooks/post_app_removeaccess index 9fdd591..af784b5 100644 --- a/hooks/post_app_removeaccess +++ b/hooks/post_app_removeaccess @@ -12,7 +12,7 @@ source /etc/yunohost/apps/$app/scripts/_common.sh usernames=$2 permission=$3 groups=$4 -final_path=$(ynh_app_setting_get "$app" final_path) +install_dir=$(ynh_app_setting_get "$app" install_dir) phpversion=$(ynh_app_setting_get "$app" phpversion) IFS=',' read -r -a user_list <<< "$usernames" @@ -28,5 +28,5 @@ done for user in "${user_list[@]}" do mail=$(ynh_user_get_info --username="$user" --key=mail) - cd "$final_path" && ynh_exec_as $app php$phpversion bin/console aeneria:user:deactivate "$mail" -n + cd "$install_dir" && ynh_exec_as $app php$phpversion bin/console aeneria:user:deactivate "$mail" -n done diff --git a/manifest.toml b/manifest.toml index 8b43c6e..a413dec 100644 --- a/manifest.toml +++ b/manifest.toml @@ -19,8 +19,11 @@ code = "https://gitlab.com/aeneria/aeneria-app" yunohost = ">= 11.2" architectures = "all" multi_instance = true + ldap = false + sso = false + disk = "50M" ram.build = "50M" ram.runtime = "50M" diff --git a/scripts/install b/scripts/install index 984ab85..1fa354e 100644 --- a/scripts/install +++ b/scripts/install @@ -28,9 +28,9 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# NGINX CONFIGURATION +# SYSTEM CONFIGURATION #================================================= -ynh_script_progression --message="Configuring NGINX web server..." --weight=1 +ynh_script_progression --message="Adding system configurations related to $app..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config @@ -43,9 +43,9 @@ ynh_add_fpm_config #================================================= # CONFIGURE AENERIA #================================================= -ynh_script_progression --message="Configuring aeneria..." --weight=1 +ynh_script_progression --message="Configuring $app..." --weight=1 -ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" +ynh_add_config --template=".env" --destination="$install_dir/.env" # Restrict rights to aeneria user only chmod 600 "$install_dir/.env" diff --git a/scripts/remove b/scripts/remove index a18a484..b88f6a3 100644 --- a/scripts/remove +++ b/scripts/remove @@ -10,9 +10,9 @@ source _common.sh source /usr/share/yunohost/helpers #================================================= -# REMOVE NGINX CONFIGURATION +# REMOVE SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1 +ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 # Remove the dedicated NGINX config ynh_remove_nginx_config diff --git a/scripts/restore b/scripts/restore index a3a07d4..3c6e57d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -27,10 +27,12 @@ ynh_script_progression --message="Restoring the PSQL database..." --weight=1 ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql +#================================================= +# RESTORE SYSTEM CONFIGURATIONS #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1 +ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1 # Restore the file first, so it can have a backup if different ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" diff --git a/scripts/upgrade b/scripts/upgrade index 03fac98..bea1232 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -58,9 +58,9 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# NGINX CONFIGURATION +# REAPPLY SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 +ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config