diff --git a/conf/5-flohmarkt.ini b/conf/05-flohmarkt.ini similarity index 100% rename from conf/5-flohmarkt.ini rename to conf/05-flohmarkt.ini diff --git a/scripts/backup b/scripts/backup index e43037b..80fa618 100755 --- a/scripts/backup +++ b/scripts/backup @@ -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/filter.d/$app.conf" 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 # to guarentee a consistant state diff --git a/scripts/install b/scripts/install index 4d18fb6..4c63a5a 100755 --- a/scripts/install +++ b/scripts/install @@ -49,9 +49,9 @@ ynh_install_extra_app_dependencies \ # add couchdb configuration ynh_script_progression --message="Adding a configuration file..." --weight=2 # customize couchdb config -ynh_add_config --template="../conf/5-flohmarkt.ini" --destination="/opt/couchdb/etc/local.d/5-flohmarkt.ini" -chown root:couchdb /opt/couchdb/etc/local.d/5-flohmarkt.ini -chmod 640 /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/05-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 chmod 750 "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index c525ebc..7c5f1a6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -52,7 +52,7 @@ fi #================================================= 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 -R o-rwx "$install_dir"