1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
This commit is contained in:
Chris Vogel 2024-04-20 16:27:34 +02:00
parent 0af67b58da
commit 0ba0a14ee9

View file

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