mirror of
https://github.com/YunoHost-Apps/couchdb_ynh.git
synced 2024-09-03 18:16:11 +02:00
commit
b9ac6b4972
5 changed files with 9 additions and 13 deletions
|
@ -22,5 +22,4 @@ location __PATH__/ {
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
more_clear_input_headers 'Accept-Encoding';
|
more_clear_input_headers 'Accept-Encoding';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,13 +6,12 @@
|
||||||
"en": "Open-source document-oriented NoSQL database",
|
"en": "Open-source document-oriented NoSQL database",
|
||||||
"fr": "Système de gestion de base de données orienté documents"
|
"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/",
|
"url": "https://couchdb.apache.org/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"website": "https://couchdb.apache.org/",
|
"website": "https://couchdb.apache.org/",
|
||||||
"admindoc": "https://docs.couchdb.org/en/stable/",
|
"admindoc": "https://docs.couchdb.org/en/stable/",
|
||||||
"userdoc": "https://yunohost.org/apps",
|
|
||||||
"code": "https://github.com/apache/couchdb"
|
"code": "https://github.com/apache/couchdb"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@ -22,7 +21,7 @@
|
||||||
"url": "https://squeak.eauchat.org"
|
"url": "https://squeak.eauchat.org"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.2.4"
|
"yunohost": ">= 4.3.0"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": [
|
"services": [
|
||||||
|
|
|
@ -126,7 +126,7 @@ ynh_use_logrotate
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
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
|
# 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
|
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
|
# Make app public if necessary
|
||||||
if [ $is_public -eq 1 ]
|
if [ $is_public -eq 1 ]
|
||||||
then
|
then
|
||||||
# Everyone can access the app.
|
|
||||||
# The "main" permission is automatically created before the install script.
|
|
||||||
ynh_permission_update --permission="main" --add="visitors"
|
ynh_permission_update --permission="main" --add="visitors"
|
||||||
fi
|
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
|
# RELOAD NGINX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -79,7 +79,7 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL COUCHDB
|
# REINSTALL COUCHDB
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstalling couchdb..." --weight=40
|
ynh_script_progression --message="Reinstalling Couchdb..." --weight=40
|
||||||
|
|
||||||
COUCHDB_PASSWORD=$password
|
COUCHDB_PASSWORD=$password
|
||||||
echo "couchdb couchdb/mode select standalone
|
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
|
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
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -110,7 +110,7 @@ ynh_use_logrotate --non-append
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=2
|
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
|
# UPGRADE FAIL2BAN
|
||||||
|
|
Loading…
Add table
Reference in a new issue