1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00

5-flohmarkt.conf → 05-flohmarkt.conf, added to update

This commit is contained in:
Chris Vogel 2024-04-21 12:43:18 +02:00
parent 08b5c61218
commit 590198f862
4 changed files with 5 additions and 4 deletions

View file

@ -9,6 +9,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
# ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" # ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf"
# ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" # ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf"
ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/logrotate.d/$app"
ynh_backup --src_path="/opt/couchdb/etc/local.d/05-flohmarkt.ini"
# for the following backups we'll want to stop flohmarkt and couchdb # for the following backups we'll want to stop flohmarkt and couchdb
# to guarentee a consistant state # to guarentee a consistant state

View file

@ -49,9 +49,9 @@ ynh_install_extra_app_dependencies \
# add couchdb configuration # add couchdb configuration
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/5-flohmarkt.ini" --destination="/opt/couchdb/etc/local.d/5-flohmarkt.ini" ynh_add_config --template="../conf/05-flohmarkt.ini" --destination="/opt/couchdb/etc/local.d/05-flohmarkt.ini"
chown root:couchdb /opt/couchdb/etc/local.d/5-flohmarkt.ini chown root:couchdb /opt/couchdb/etc/local.d/05-flohmarkt.ini
chmod 640 /opt/couchdb/etc/local.d/5-flohmarkt.ini chmod 640 /opt/couchdb/etc/local.d/05-flohmarkt.ini
# @@ 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"

View file

@ -52,7 +52,7 @@ fi
#================================================= #=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="../conf/5-flohmarkt.ini" --destination="$install_dir/etc/local.d/5-flohmarkt.ini" ynh_add_config --template="../conf/05-flohmarkt.ini" --destination="$install_dir/etc/local.d/05-flohmarkt.ini"
chmod 750 "$install_dir" chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"