1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/couchdb_ynh.git synced 2024-09-03 18:16:11 +02:00
This commit is contained in:
Éric Gaspar 2024-01-01 17:12:01 +01:00 committed by Félix Piédallu
parent 59b941e377
commit 8455510054
2 changed files with 10 additions and 12 deletions

View file

@ -19,7 +19,7 @@ code = "https://github.com/apache/couchdb"
cpe = "cpe:2.3:a:apache:couchdb" cpe = "cpe:2.3:a:apache:couchdb"
[integration] [integration]
yunohost = ">= 11.1" yunohost = ">= 11.2"
architectures = "all" architectures = "all"
multi_instance = false multi_instance = false
@ -63,8 +63,11 @@ ram.runtime = "60M"
[resources.apt] [resources.apt]
packages = ["gnupg", "ca-certificates"] packages = ["gnupg", "ca-certificates"]
# Find a way to do that here [resources.apt]
# [resources.apt.extras.couchdb] packages = "deb1, deb2, php8.0-foo, php8.0-bar"
# repo = "deb https://apache.jfrog.io/artifactory/couchdb-deb/ $(lsb_release -c -s) main"
# key = "https://couchdb.apache.org/repo/keys.asc" [resources.apt]
# packages = ["couchdb"] packages = ""
extras.couchdb.repo = "deb https://apache.jfrog.io/artifactory/couchdb-deb/ bullseye main"
extras.couchdb.key = "https://couchdb.apache.org/repo/keys.asc"
extras.couchdb.packages = ["couchdb"]

View file

@ -36,18 +36,13 @@ couchdb couchdb/adminpass_again password $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
ynh_install_extra_app_dependencies \
--repo="deb https://apache.jfrog.io/artifactory/couchdb-deb/ $(lsb_release -c -s) main" \
--key="https://couchdb.apache.org/repo/keys.asc" \
--package="couchdb"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=2 ynh_script_progression --message="Adding a configuration file..." --weight=2
# Customize a bit the couch config # Customize a bit the couch config
ynh_add_config --template="../conf/couch_ynh.ini" --destination="$install_dir/etc/local.d/couch_ynh.ini" ynh_add_config --template="couch_ynh.ini" --destination="$install_dir/etc/local.d/couch_ynh.ini"
chmod 750 "$install_dir" chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"