mirror of
https://github.com/YunoHost-Apps/couchdb_ynh.git
synced 2024-09-03 18:16:11 +02:00
Fix
This commit is contained in:
parent
9c8504567a
commit
669c8520a7
4 changed files with 21 additions and 19 deletions
|
@ -3,7 +3,7 @@
|
|||
"id": "couchdb",
|
||||
"packaging_format": 1,
|
||||
"description": {
|
||||
"en": "An 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"
|
||||
},
|
||||
"version": "3.1.1~ynh2",
|
||||
|
|
|
@ -35,7 +35,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
#=================================================
|
||||
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
||||
|
||||
final_path=/opt/couchdb
|
||||
final_path=/opt/$app
|
||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||
|
||||
# Register (book) web path
|
||||
|
@ -82,7 +82,7 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
# INSTALL COUCHDB
|
||||
#=================================================
|
||||
ynh_script_progression --message="Installing couchdb..." --weight=60
|
||||
ynh_script_progression --message="Installing CouchDB..." --weight=60
|
||||
|
||||
COUCHDB_PASSWORD=$password
|
||||
echo "couchdb couchdb/mode select standalone
|
||||
|
@ -102,7 +102,7 @@ ynh_install_extra_app_dependencies --repo="https://apache.jfrog.io/artifactory/c
|
|||
#=================================================
|
||||
# ADD SOME CUSTOM CONFIGURATION TO COUCH
|
||||
#=================================================
|
||||
ynh_script_progression --message="Customizing couchdb config..." --weight=2
|
||||
ynh_script_progression --message="Customizing CouchDB config..." --weight=2
|
||||
|
||||
# customize a bit the couch config
|
||||
ynh_add_config --template="../conf/couch_ynh.ini" --destination="$final_path/etc/local.d/couch_ynh.ini"
|
||||
|
|
|
@ -26,7 +26,6 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
||||
#=================================================
|
||||
|
||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||
then
|
||||
ynh_script_progression --message="Removing $app service integration..." --weight=2
|
||||
|
|
|
@ -25,7 +25,6 @@ password=$(ynh_app_setting_get --app=$app --key=password)
|
|||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Checking version..."
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
|
@ -63,7 +62,10 @@ ynh_install_app_dependencies $pkg_dependencies
|
|||
#=================================================
|
||||
# UPGRADING COUCHDB
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading couchdb..." --weight=60
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading CouchDB..." --weight=50
|
||||
|
||||
COUCHDB_PASSWORD=$password
|
||||
echo "couchdb couchdb/mode select standalone
|
||||
|
@ -79,6 +81,7 @@ DEBIAN_FRONTEND=noninteractive # apt-get install -y --force-yes couchdb
|
|||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 390EF70BB1EA12B2773962950EE62FB37A00258D 2>/dev/null
|
||||
|
||||
ynh_install_extra_app_dependencies --repo="https://apache.jfrog.io/artifactory/couchdb-deb/ buster main" --package="couchdb"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
|
|
Loading…
Reference in a new issue