mirror of
https://github.com/YunoHost-Apps/pgadmin_ynh.git
synced 2024-09-03 19:56:38 +02:00
Merge branch 'testing'
This commit is contained in:
commit
2ecf82853c
7 changed files with 8 additions and 9 deletions
|
@ -12,7 +12,7 @@ Overview
|
|||
|
||||
pgAdmin is a feature rich Open Source administration and development platform for PostgreSQL.
|
||||
|
||||
**Shipped version:** 4-4.19
|
||||
**Shipped version:** 4-4.20
|
||||
|
||||
Screenshots
|
||||
-----------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://github.com/Josue-T/pgadmin_python_build/releases/download/v4-4.19/pgadmin_4-4.19-stretch-bin1_armv7l.tar.gz
|
||||
SOURCE_SUM=e3c0e71f03a6b9ed25120d4201e711398831e29500c8a645ac29ff0400815422
|
||||
SOURCE_URL=https://github.com/Josue-T/pgadmin_python_build/releases/download/v4-4.20/pgadmin_4-4.20-stretch-bin1_armv7l.tar.gz
|
||||
SOURCE_SUM=adc4ea760464c500c1f858296280e5455a71145f7aa5171cff445385aadcdd45
|
||||
# (Optional) Program to check the integrity (sha256sum, md5sum...)
|
||||
# default: sha256
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Manage PostgreSQL databases over the web",
|
||||
"fr": "Application web de gestion des bases de données PostgreSQL"
|
||||
},
|
||||
"version": "4-4.19~ynh1",
|
||||
"version": "4-4.20~ynh1",
|
||||
"url": "https://www.pgadmin.org",
|
||||
"license": "PostgreSQL",
|
||||
"maintainer": {
|
||||
|
@ -14,7 +14,7 @@
|
|||
"email": "josue@tille.ch"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 3.5.2.2"
|
||||
"yunohost": ">= 3.7.0.6"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
app=$YNH_APP_INSTANCE_NAME
|
||||
final_path=/opt/yunohost/$app
|
||||
pgadmin_user="pgadmin"
|
||||
python_version="3.5"
|
||||
python_version="$(python3 -V | cut -d' ' -f2 | cut -d. -f1-2)"
|
||||
dependances="python3-pip build-essential python3-dev python3-venv postgresql uwsgi uwsgi-plugin-python3 expect libpq-dev"
|
||||
|
||||
if [[ -e "../settings/manifest.json" ]] || [[ -e "../manifest.json" ]]; then
|
||||
|
|
|
@ -32,7 +32,6 @@ ynh_backup --src_path "$final_path"
|
|||
ynh_script_progression --message="Backing configuration..."
|
||||
ynh_backup --src_path "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
ynh_backup --src_path "/etc/uwsgi/apps-available/$app.ini"
|
||||
ynh_backup --src_path "/etc/systemd/system/uwsgi-app@.service"
|
||||
|
||||
# Backup Data and LOG
|
||||
ynh_script_progression --message="Backing up data..."
|
||||
|
|
|
@ -108,7 +108,7 @@ set_permission
|
|||
|
||||
# Restrict access to admin only
|
||||
ynh_script_progression --message="Configuring permissions"
|
||||
yunohost app addaccess --users=$admin $app
|
||||
ynh_permission_update --permission="main" --remove="all_users" --add=$admin
|
||||
|
||||
# Configuration de logrotate
|
||||
ynh_script_progression --message="Configuring log rotation..."
|
||||
|
|
|
@ -48,7 +48,7 @@ ynh_psql_execute_as_root \
|
|||
|
||||
# Restore systemd configuration
|
||||
ynh_script_progression --message="Reconfiguring application..."
|
||||
systemctl daemon-reload
|
||||
ynh_check_global_uwsgi_config
|
||||
systemctl enable "uwsgi-app@$app.service"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue