1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adminer_ynh.git synced 2024-09-03 18:06:06 +02:00
* 4.8.1 (#15)

* 4.8.1

* Add template

* Auto-update README

Co-authored-by: Yunohost-Bot <>
This commit is contained in:
Éric Gaspar 2021-07-10 12:49:44 +02:00 committed by GitHub
parent 6929c7565a
commit ca1c1238a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1392 additions and 1398 deletions

View file

@ -1,7 +1,12 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
It shall NOT be edited by hand.
-->
# Adminer for YunoHost
[![Integration level](https://dash.yunohost.org/integration/adminer.svg)](https://dash.yunohost.org/appci/app/adminer) ![](https://ci-apps.yunohost.org/ci/badges/adminer.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/adminer.maintain.svg)
[![Install Adminer with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=adminer)
[![Install Adminer with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer)
*[Lire ce readme en français.](./README_fr.md)*
@ -9,44 +14,31 @@
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
## Overview
Adminer (formerly phpMinAdmin better alternate to phpMyAdmin) is a full-featured database management tool (MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, SimpleDB, Elasticsearch, MongoDB). Replace phpMyAdmin with Adminer and you will get a tidier user interface, better support for MySQL features, higher performance and more security. [See detailed comparison](https://www.adminer.org/en/phpmyadmin).
**Shipped version:** 4.8.0
Database management in a single PHP file
**Shipped version:** 4.8.1~ynh1
**Demo:** https://demo.adminer.org/adminer.php?username=
## Screenshots
![](https://www.adminer.org/static/screenshots/db.png)
![](./doc/screenshots/screenshot.png)
## Demo
* [Official demo](https://demo.adminer.org/adminer.php?username=)
## Disclaimers / important information
## Configuration
You need to know the root password from here `/etc/yunohost/mysql` or the app username and password from `setting.yml` under `/etc/yunohost/apps/appname` to login.
For themes download the adminer.css from the main website and replace the file in the app folder.
For themes download the `adminer.css` from the main website and replace the file in the app folder.
If you have problems with drivers see here: https://www.adminer.org/en/drivers.
## YunoHost specific features
## Documentation and resources
#### Multi-user support
* Are LDAP and HTTP auth supported? **No**
* Can the app be used by multiple users? **Yes**
#### Supported architectures
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/adminer_%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/adminer/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/adminer_%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/adminer/)
## Links
* Report a bug: https://github.com/YunoHost-Apps/adminer_ynh/issues
* App website: https://www.adminer.org/
* Upstream app repository: https://github.com/vrana/adminer/
* YunoHost website: https://yunohost.org/
---
* Official app website: https://www.adminer.org/
* Upstream app code repository: https://github.com/vrana/adminer/
* YunoHost documentation for this app: https://yunohost.org/app_adminer
* Report a bug: https://github.com/YunoHost-Apps/adminer_ynh/issues
## Developer info
@ -58,3 +50,5 @@ sudo yunohost app install https://github.com/YunoHost-Apps/adminer_ynh/tree/test
or
sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
```
**More info regarding app packaging:** https://yunohost.org/packaging_apps

View file

@ -1,65 +1,40 @@
# Adminer pour YunoHost
[![Integration level](https://dash.yunohost.org/integration/adminer.svg)](https://dash.yunohost.org/appci/app/adminer) ![](https://ci-apps.yunohost.org/ci/badges/adminer.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/adminer.maintain.svg)
[![Installer Adminer avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=adminer)
[![Niveau d'intégration](https://dash.yunohost.org/integration/adminer.svg)](https://dash.yunohost.org/appci/app/adminer) ![](https://ci-apps.yunohost.org/ci/badges/adminer.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/adminer.maintain.svg)
[![Installer Adminer avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer)
*[Read this readme in english.](./README.md)*
*[Lire ce readme en français.](./README_fr.md)*
> *Ce package vous permet d'installer Adminer rapidement et simplement sur un serveur YunoHost.
Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install) pour apprendre comment l'installer.*
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
## Vue d'ensemble
Adminer (anciennement phpMinAdmin, meilleure alternative à phpMyAdmin) est un outil de gestion de base de données (MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, SimpleDB, Elasticsearch, MongoDB). Remplacez phpMyAdmin par Adminer et vous obtiendrez une interface utilisateur plus ordonnée, une meilleure prise en charge des fonctionnalités MySQL, des performances plus élevées et plus de sécurité. [Voir comparaison détaillée](https://www.adminer.org/en/phpmyadmin).
**Version incluse :** 4.8.0
Gestionnaire de base de données en un seul fichier PHP
**Version incluse :** 4.8.1~ynh1
**Démo :** https://demo.adminer.org/adminer.php?username=
## Captures d'écran
![](https://www.adminer.org/static/screenshots/db.png)
![](./doc/screenshots/screenshot.png)
## Démo
* [Démo officielle](https://demo.adminer.org/adminer.php?username=)
## Avertissements / informations importantes
## Configuration
Vous devez connaître le mot de passe root à partir d'ici `/etc/yunohost/mysql` ou le nom d'utilisateur et le mot de passe de l'application dans `setting.yml` sous `/etc/yunohost/apps/appname` pour vous connecter.
Pour les thèmes, téléchargez le fichier adminer.css depuis le site Web principal et placez le fichier dans le dossier de l'application.
Pour les thèmes, téléchargez le fichier `adminer.css` depuis le site Web principal et placez le fichier dans le dossier de l'application.
Si vous rencontrez des problèmes avec les pilotes, consultez : https://www.adminer.org/en/drivers.
## Documentation
## Documentations et ressources
* Documentation officielle : Lien vers la documentation officielle de cette application.
* Documentation YunoHost : Si une documentation spécifique est nécessaire, n'hésitez pas à contribuer.
## Caractéristiques spécifiques YunoHost
#### Support multi-utilisateur
* L'authentification LDAP et HTTP est-elle prise en charge ? **Non**
* L'application peut-elle être utilisée par plusieurs utilisateurs ? **Oui**
#### Supported architectures
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/adminer_%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/adminer/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/adminer_%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/adminer/)
## Limitations
* Limitations connues.
## Additional information
* Autres informations que vous souhaitez ajouter sur cette application.
## Liens
* Signaler un bug : https://github.com/YunoHost-Apps/adminer_ynh/issues
* Site de l'application : https://www.adminer.org/
* Dépôt de l'application principale : https://github.com/vrana/adminer/
* Site web YunoHost : https://yunohost.org/
---
* Site officiel de l'app : https://www.adminer.org/
* Dépôt de code officiel de l'app : https://github.com/vrana/adminer/
* Documentation YunoHost pour cette app : https://yunohost.org/app_adminer
* Signaler un bug : https://github.com/YunoHost-Apps/adminer_ynh/issues
## Informations pour les développeurs
@ -68,6 +43,8 @@ Merci de faire vos pull request sur la [branche testing](https://github.com/Yuno
Pour essayer la branche testing, procédez comme suit.
```
sudo yunohost app install https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
or
ou
sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
```
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps

View file

@ -1,13 +1,9 @@
# See here for more information
# https://github.com/YunoHost/package_check#syntax-check_process-file
;; Test complet
; Manifest
domain="domain.tld" (DOMAIN)
path="/path" (PATH)
domain="domain.tld"
path="/path"
root_access=0
is_public=1 (PUBLIC|public=1|private=0)
is_public=1
; Checks
pkg_linter=1
setup_sub_dir=1
@ -18,7 +14,6 @@
upgrade=1
backup_restore=1
multi_instance=1
port_already_use=0
change_url=1
;;; Options
Email= anmol@datamol.org

BIN
doc/.DS_Store vendored Normal file

Binary file not shown.

5
doc/DISCLAIMER.md Normal file
View file

@ -0,0 +1,5 @@
## Configuration
You need to know the root password from here `/etc/yunohost/mysql` or the app username and password from `setting.yml` under `/etc/yunohost/apps/appname` to login.
For themes download the `adminer.css` from the main website and replace the file in the app folder.
If you have problems with drivers see here: https://www.adminer.org/en/drivers.

5
doc/DISCLAIMER_fr.md Normal file
View file

@ -0,0 +1,5 @@
## Configuration
Vous devez connaître le mot de passe root à partir d'ici `/etc/yunohost/mysql` ou le nom d'utilisateur et le mot de passe de l'application dans `setting.yml` sous `/etc/yunohost/apps/appname` pour vous connecter.
Pour les thèmes, téléchargez le fichier `adminer.css` depuis le site Web principal et placez le fichier dans le dossier de l'application.
Si vous rencontrez des problèmes avec les pilotes, consultez : https://www.adminer.org/en/drivers.

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -7,8 +7,14 @@
"fr": "Gestionnaire de base de données en un seul fichier PHP"
},
"version": "4.8.0~ynh1",
"version": "4.8.1~ynh1",
"url": "https://www.adminer.org/",
"upstream": {
"license": "Apache-2.0",
"website": "https://www.adminer.org/",
"demo": "https://demo.adminer.org/adminer.php?username=",
"code": "https://github.com/vrana/adminer/"
},
"license": "Apache-2.0",
"maintainer": {
"name": "Anmol Sharma",
@ -21,7 +27,7 @@
"url": "https://github.com/jesuisfol/adminer_ynh"
},
"requirements": {
"yunohost": ">= 4.1.7"
"yunohost": ">= 4.2.4"
},
"multi_instance": true,
"services": [

View file

@ -45,6 +45,14 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=root_access --value=$root_access
#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Configuring system user..." --weight=2
# Create a system user
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
@ -63,23 +71,10 @@ if [[ $root_access -eq 1 ]]; then
cp -a ../sources/root_access_disabled/. $final_path
fi
#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Configuring system user..." --weight=2
# Create a system user
ynh_system_user_create --username=$app
#=================================================
# GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chown -R www-data:www-data $final_path
chmod 755 -R $final_path/adminer.php
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 755 $final_path/adminer.php
#=================================================
# NGINX CONFIGURATION

View file

@ -46,6 +46,14 @@ test ! -d $final_path \
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
ynh_script_progression --message="Recreating the dedicated system user..." --weight=2
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================
@ -53,21 +61,10 @@ ynh_script_progression --message="Restoring Adminer main directory..." --weight=
ynh_restore_file --origin_path="$final_path"
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
ynh_script_progression --message="Recreating the dedicated system user..." --weight=2
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app
#=================================================
# STANDARD RESTORATION STEPS
#=================================================
# Restore permissions to app files
chown -R www-data:www-data $final_path
chmod 755 -R $final_path/adminer.php
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 755 $final_path/adminer.php
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

View file

@ -22,6 +22,26 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
root_access=$(ynh_app_setting_get --app=$app --key=root_access)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up Adminer before upgrading (may take a while)..." --weight=3
# Backup the current version of the app
ynh_backup_before_upgrade
ynh_clean_setup () {
# restore it if the upgrade fails
ynh_restore_upgradebackup
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
@ -40,48 +60,38 @@ if ynh_legacy_permissions_exists; then
ynh_app_setting_delete --app=$app --key=is_public
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up Adminer before upgrading (may take a while)..." --weight=3
# Backup the current version of the app
ynh_backup_before_upgrade
ynh_clean_setup () {
# restore it if the upgrade fails
ynh_restore_upgradebackup
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Making sure dedicated system user exists..." --weight=1
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app
ynh_system_user_create --username=$app --home_dir="$final_path"
# Copy source files
ynh_secure_remove $final_path
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
mkdir -p $final_path
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
# Copy source files
ynh_secure_remove $final_path
if [[ $root_access -eq 1 ]]; then
#copy files from with_root_access folder to the final_path
cp -a ../sources/with_root_access/. $final_path
else
#copy files from root_access_disabled folder to the final_path
cp -a ../sources/root_access_disabled/. $final_path
mkdir -p $final_path
if [[ $root_access -eq 1 ]]; then
#copy files from with_root_access folder to the final_path
cp -a ../sources/with_root_access/. $final_path
else
#copy files from root_access_disabled folder to the final_path
cp -a ../sources/root_access_disabled/. $final_path
fi
fi
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chmod 755 -R $final_path/adminer.php
chown -R www-data:www-data $final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 755 $final_path/adminer.php
#=================================================
# NGINX CONFIGURATION

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long