Chris Vogel 1 год назад
Родитель
Сommit
25ca85bb98
1 измененных файлов с 0 добавлено и 8 удалено
  1. 0 8
      scripts/install

+ 0 - 8
scripts/install

@@ -57,11 +57,6 @@ chmod 640 /opt/couchdb/etc/local.d/05-flohmarkt.ini
 systemctl restart couchdb
 systemctl restart couchdb
 systemctl status couchdb
 systemctl status couchdb
 
 
-# INTEGRATE SERVICE IN YUNOHOST
-# would this work? couchdb brings its own systemd.service...
-# ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
-# yunohost service add $app --description="war mal couchdb" --log="/var/log/$app/$app.log"
-
 # get flohmarkt
 # get flohmarkt
 ynh_setup_source --dest_dir="$install_dir/$app/"
 ynh_setup_source --dest_dir="$install_dir/$app/"
 
 
@@ -104,7 +99,6 @@ ynh_add_config --template="../conf/flohmarkt.conf" --destination="$install_dir/$
 # SETUP LOGROTATE
 # SETUP LOGROTATE
 ynh_script_progression --message="Configuring log rotation..." --weight=2
 ynh_script_progression --message="Configuring log rotation..." --weight=2
 # Use logrotate to manage application logfile(s)
 # Use logrotate to manage application logfile(s)
-# @@ how does this know where the logfiles are?
 ynh_use_logrotate
 ynh_use_logrotate
 
 
 # NGINX CONFIGURATION
 # NGINX CONFIGURATION
@@ -129,6 +123,4 @@ ynh_systemd_action --service_name=$app --action="start"
 # # Create a dedicated Fail2Ban config
 # # Create a dedicated Fail2Ban config
 # ynh_add_fail2ban_config --logpath="/var/log/couchdb/couchdb.log" --failregex="[warning] .*couch_httpd_auth: Authentication failed for user .+ from <HOST>" --max_retry=5
 # ynh_add_fail2ban_config --logpath="/var/log/couchdb/couchdb.log" --failregex="[warning] .*couch_httpd_auth: Authentication failed for user .+ from <HOST>" --max_retry=5
 
 
-# @@ logrotation
-
 ynh_script_progression --message="Installation of $app completed" --last
 ynh_script_progression --message="Installation of $app completed" --last