mirror of
https://github.com/YunoHost-Apps/couchdb_ynh.git
synced 2024-09-03 18:16:11 +02:00
Add templates
This commit is contained in:
parent
3f5a1e6c6f
commit
809f0ea116
7 changed files with 25 additions and 34 deletions
3
doc/DISCLAIMER.md
Normal file
3
doc/DISCLAIMER.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
You can do most configuration of CouchDB from fauxton, the web interface, accessible at the domain you specified: https://domain.tld/_utils/index.html
|
3
doc/DISCLAIMER_fr.md
Normal file
3
doc/DISCLAIMER_fr.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Vous pouvez effectuer la plupart des configurations de CouchDB à partir de fauxton, l'interface Web, accessible sur le domaine que vous avez spécifié : https://domain.tld/_utils/index.html
|
BIN
doc/screenshots/Apache_CouchDB_v2.1.1_Fauxton_Console.png
Normal file
BIN
doc/screenshots/Apache_CouchDB_v2.1.1_Fauxton_Console.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 109 KiB |
|
@ -1,13 +1,20 @@
|
||||||
{
|
{
|
||||||
"name": "Couchdb",
|
"name": "CouchDB",
|
||||||
"id": "couchdb",
|
"id": "couchdb",
|
||||||
"packaging_format": 1,
|
"packaging_format": 1,
|
||||||
"description": {
|
"description": {
|
||||||
"en": "An open-source document-oriented NoSQL database.",
|
"en": "An 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~ynh1",
|
"version": "3.1.1~ynh2",
|
||||||
"url": "https://couchdb.apache.org/",
|
"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",
|
"license": "Apache-2.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "Squeak",
|
"name": "Squeak",
|
||||||
|
@ -38,8 +45,8 @@
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"help": {
|
"help": {
|
||||||
"en": "If enabled, couchdb will be accessible without yunohost account on your server, but couchdb contains it's own user authentication system.",
|
"en": "If enabled, CouchDB will be accessible without YunoHost account on your server, but CouchDB contains it's own user authentication system.",
|
||||||
"fr": "Si cette case est cochée, couchdb sera accessible aux personnes n’ayant pas de compte yunohost sur votre serveur, mais couchdb a son propre système d'autentification des utilisateurs."
|
"fr": "Si cette case est cochée, CouchDB sera accessible aux personnes n’ayant pas de compte YunoHost sur votre serveur, mais CouchDB a son propre système d'autentification des utilisateurs."
|
||||||
},
|
},
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
|
|
|
@ -95,12 +95,9 @@ couchdb couchdb/adminpass_again password ${COUCHDB_PASSWORD}
|
||||||
couchdb couchdb/adminpass_again seen true" | debconf-set-selections
|
couchdb couchdb/adminpass_again seen true" | debconf-set-selections
|
||||||
DEBIAN_FRONTEND=noninteractive # apt-get install -y --force-yes couchdb
|
DEBIAN_FRONTEND=noninteractive # apt-get install -y --force-yes couchdb
|
||||||
|
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 390EF70BB1EA12B2773962950EE62FB37A00258D
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 390EF70BB1EA12B2773962950EE62FB37A00258D 2>/dev/null
|
||||||
|
|
||||||
#ynh_install_extra_app_dependencies --repo="https://apache.bintray.com/couchdb-deb buster main" --package="couchdb"
|
ynh_install_extra_app_dependencies --repo="https://apache.jfrog.io/artifactory/couchdb-deb/ buster main" --package="couchdb"
|
||||||
# ynh_install_extra_app_dependencies --repo="https://apache.bintray.com/couchdb-deb buster main" --package="couchdb" --key="https://apache.bintray.com/couchdb-deb/dists/buster/Release.gpg"
|
|
||||||
|
|
||||||
ynh_install_extra_app_dependencies --repo="https://apache.jfrog.io/artifactory/couchdb-deb/ buster main" --package="couchdb" #--key="https://apache.jfrog.io/artifactory/couchdb-deb/dists/buster/Release.gpg"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADD SOME CUSTOM CONFIGURATION TO COUCH
|
# ADD SOME CUSTOM CONFIGURATION TO COUCH
|
||||||
|
|
|
@ -93,11 +93,9 @@ couchdb couchdb/adminpass_again password ${COUCHDB_PASSWORD}
|
||||||
couchdb couchdb/adminpass_again seen true" | debconf-set-selections
|
couchdb couchdb/adminpass_again seen true" | debconf-set-selections
|
||||||
DEBIAN_FRONTEND=noninteractive # apt-get install -y --force-yes couchdb
|
DEBIAN_FRONTEND=noninteractive # apt-get install -y --force-yes couchdb
|
||||||
|
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8756C4F765C9AC3CB6B85D62379CE192D401AB61
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 390EF70BB1EA12B2773962950EE62FB37A00258D 2>/dev/null
|
||||||
|
|
||||||
# ynh_add_app_dependencies --package="ca-certificates" # done before, when installing dependencies
|
ynh_install_extra_app_dependencies --repo="https://apache.jfrog.io/artifactory/couchdb-deb/ buster main" --package="couchdb"
|
||||||
ynh_install_extra_app_dependencies --repo="https://apache.bintray.com/couchdb-deb buster main" --package="couchdb"
|
|
||||||
# ynh_install_extra_app_dependencies --repo="https://apache.bintray.com/couchdb-deb buster main" --package="couchdb" --key="https://apache.bintray.com/couchdb-deb/dists/buster/Release.gpg"
|
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
|
|
@ -43,22 +43,6 @@ ynh_clean_setup () {
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# STANDARD UPGRADE STEPS
|
|
||||||
#=================================================
|
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=4
|
|
||||||
|
|
||||||
# Cleaning legacy permissions
|
|
||||||
if ynh_legacy_permissions_exists; then
|
|
||||||
ynh_legacy_permissions_delete_all
|
|
||||||
|
|
||||||
ynh_app_setting_delete --app=$app --key=is_public
|
|
||||||
fi
|
|
||||||
|
|
||||||
ynh_permission_url --permission="main" --url="/_utils/index.html" --add_url="/" --auth_header=false
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -92,10 +76,9 @@ couchdb couchdb/adminpass_again password ${COUCHDB_PASSWORD}
|
||||||
couchdb couchdb/adminpass_again seen true" | debconf-set-selections
|
couchdb couchdb/adminpass_again seen true" | debconf-set-selections
|
||||||
DEBIAN_FRONTEND=noninteractive # apt-get install -y --force-yes couchdb
|
DEBIAN_FRONTEND=noninteractive # apt-get install -y --force-yes couchdb
|
||||||
|
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8756C4F765C9AC3CB6B85D62379CE192D401AB61
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 390EF70BB1EA12B2773962950EE62FB37A00258D 2>/dev/null
|
||||||
|
|
||||||
ynh_install_extra_app_dependencies --repo="https://apache.bintray.com/couchdb-deb buster main" --package="couchdb"
|
ynh_install_extra_app_dependencies --repo="https://apache.jfrog.io/artifactory/couchdb-deb/ buster main" --package="couchdb"
|
||||||
# ynh_install_extra_app_dependencies --repo="https://apache.bintray.com/couchdb-deb buster main" --package="couchdb" --key="https://apache.bintray.com/couchdb-deb/dists/buster/Release.gpg"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE A CONFIG FILE
|
# UPDATE A CONFIG FILE
|
||||||
|
|
Loading…
Reference in a new issue