Chris Vogel 1 год назад
Родитель
Сommit
1307859fb4
2 измененных файлов с 4 добавлено и 1 удалено
  1. 1 1
      conf/couch_ynh.ini
  2. 3 0
      scripts/install

+ 1 - 1
conf/couch_ynh.ini

@@ -4,4 +4,4 @@
 admin_only_all_dbs = true
 
 ; Defines the port number to listen:
-port = __PORT__
+port = __PORT_COUCHDB__

+ 3 - 0
scripts/install

@@ -50,6 +50,8 @@ ynh_install_extra_app_dependencies \
 ynh_script_progression --message="Adding a configuration file..." --weight=2
 # customize couchdb config
 ynh_add_config --template="../conf/couch_ynh.ini" --destination="/opt/couchdb/etc/local.d/couch_ynh.ini"
+# restart couchdb to pick up changes
+systemctl restart couchdb
 
 # @@ todo need to create a couchdb user and set the files to be readable/executable by it
 chmod 750 "$install_dir"
@@ -57,6 +59,7 @@ chmod -R o-rwx "$install_dir"
 chown -R "$app:$app" "$install_dir"
 
 # INTEGRATE SERVICE IN YUNOHOST
+# would this work? couchdb brings its own systemd.service...
 # ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
 # yunohost service add $app --description="war mal couchdb" --log="/var/log/$app/$app.log"