mirror of
https://github.com/YunoHost-Apps/couchdb_ynh.git
synced 2024-09-03 18:16:11 +02:00
Defines custom port to listen
This commit is contained in:
parent
7c54b9e02e
commit
bc7a32da02
2 changed files with 4 additions and 3 deletions
|
@ -2,3 +2,6 @@
|
||||||
[chttpd]
|
[chttpd]
|
||||||
; prevent non admin users to be able to access the list of all databases
|
; prevent non admin users to be able to access the list of all databases
|
||||||
admin_only_all_dbs = true
|
admin_only_all_dbs = true
|
||||||
|
|
||||||
|
; Defines the port number to listen:
|
||||||
|
port = __PORT__
|
||||||
|
|
|
@ -60,9 +60,7 @@ ynh_app_setting_set --app=$app --key=password --value=$password
|
||||||
ynh_script_progression --message="Finding an available port..." --weight=2
|
ynh_script_progression --message="Finding an available port..." --weight=2
|
||||||
|
|
||||||
# Find an available port
|
# Find an available port
|
||||||
port="5984"
|
port=$(ynh_find_port --port=5984)
|
||||||
# NOTE: ideally, it would be nice to make sure that port 5984 is not taken, but if doing so, something should be done on couchdb install to customize the port it uses
|
|
||||||
# port=$(ynh_find_port --port=5984)
|
|
||||||
ynh_app_setting_set --app=$app --key=port --value=$port
|
ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue