Explorar o código

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

Chris Vogel hai 1 ano
pai
achega
590198f862
Modificáronse 4 ficheiros con 5 adicións e 4 borrados
  1. 0 0
      conf/05-flohmarkt.ini
  2. 1 0
      scripts/backup
  3. 3 3
      scripts/install
  4. 1 1
      scripts/upgrade

+ 0 - 0
conf/5-flohmarkt.ini → conf/05-flohmarkt.ini


+ 1 - 0
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/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

+ 3 - 3
scripts/install

@@ -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"
-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
 # @@ 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"

+ 1 - 1
scripts/upgrade

@@ -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"