1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/couchdb_ynh.git synced 2024-09-03 18:16:11 +02:00

Merge pull request #15 from YunoHost-Apps/4.3

4.3
This commit is contained in:
Éric Gaspar 2022-03-20 08:37:44 +01:00 committed by GitHub
commit b9ac6b4972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 13 deletions

View file

@ -22,5 +22,4 @@ location __PATH__/ {
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
more_clear_input_headers 'Accept-Encoding';
}

View file

@ -6,13 +6,12 @@
"en": "Open-source document-oriented NoSQL database",
"fr": "Système de gestion de base de données orienté documents"
},
"version": "3.1.1~ynh3",
"version": "3.2.1~ynh1",
"url": "https://couchdb.apache.org/",
"upstream": {
"license": "Apache-2.0",
"website": "https://couchdb.apache.org/",
"admindoc": "https://docs.couchdb.org/en/stable/",
"userdoc": "https://yunohost.org/apps",
"code": "https://github.com/apache/couchdb"
},
"license": "Apache-2.0",
@ -22,7 +21,7 @@
"url": "https://squeak.eauchat.org"
},
"requirements": {
"yunohost": ">= 4.2.4"
"yunohost": ">= 4.3.0"
},
"multi_instance": false,
"services": [

View file

@ -126,7 +126,7 @@ ynh_use_logrotate
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Open-source document-oriented NoSQL database" --log="/var/log/$app/$app.log" --needs_exposed_ports "$port"
yunohost service add $app --description="Open-source document-oriented NoSQL database" --log="/var/log/$app/$app.log"
#=================================================
# SETUP FAIL2BAN
@ -141,17 +141,15 @@ ynh_add_fail2ban_config --logpath="/var/log/couchdb/couchdb.log" --failregex="[w
#=================================================
ynh_script_progression --message="Configuring permissions..." --weight=3
# Setup that clicking SSO tile opens fauxton UI
ynh_permission_url --permission="main" --url="/_utils/index.html" --add_url="/" --auth_header=false
# Make app public if necessary
if [ $is_public -eq 1 ]
then
# Everyone can access the app.
# The "main" permission is automatically created before the install script.
ynh_permission_update --permission="main" --add="visitors"
fi
# Setup that clicking SSO tile opens fauxton UI
ynh_permission_url --permission="main" --url="/_utils/index.html" --add_url="/" --auth_header=false
#=================================================
# RELOAD NGINX
#=================================================

View file

@ -79,7 +79,7 @@ ynh_install_app_dependencies $pkg_dependencies
#=================================================
# REINSTALL COUCHDB
#=================================================
ynh_script_progression --message="Reinstalling couchdb..." --weight=40
ynh_script_progression --message="Reinstalling Couchdb..." --weight=40
COUCHDB_PASSWORD=$password
echo "couchdb couchdb/mode select standalone
@ -112,7 +112,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Open-source document-oriented NoSQL database" --log="/var/log/$app/$app.log" --needs_exposed_ports "$port"
yunohost service add $app --description="Open-source document-oriented NoSQL database" --log="/var/log/$app/$app.log"
#=================================================
# GENERIC FINALIZATION

View file

@ -110,7 +110,7 @@ ynh_use_logrotate --non-append
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=2
yunohost service add $app --description="Open-source document-oriented NoSQL database" --log="/var/log/$app/$app.log" --needs_exposed_ports "$port"
yunohost service add $app --description="Open-source document-oriented NoSQL database" --log="/var/log/$app/$app.log"
#=================================================
# UPGRADE FAIL2BAN