Warnings mis dans les templates
This commit is contained in:
		
							parent
							
								
									a67f649279
								
							
						
					
					
						commit
						6488bd561b
					
				|  | @ -39,7 +39,7 @@ then | ||||||
|     . /etc/alternc/local.sh |     . /etc/alternc/local.sh | ||||||
|     # Configuration template location |     # Configuration template location | ||||||
|     TEMPLATE_DIR="/etc/alternc/templates" |     TEMPLATE_DIR="/etc/alternc/templates" | ||||||
|     CONFIG_FILES="etc/roundcube/main.inc.php etc/roundcube/plugins/password/config.inc.php" |     CONFIG_FILES="etc/roundcube/main.inc.php etc/roundcube/plugins/password/config.inc.php etc/roundcube/plugins/managesieve/config.inc.php" | ||||||
|     LOGROTATE_FILES="etc/logrotate.d/roundcube-core" |     LOGROTATE_FILES="etc/logrotate.d/roundcube-core" | ||||||
| 
 | 
 | ||||||
|     cat > $SED_SCRIPT <<EOF |     cat > $SED_SCRIPT <<EOF | ||||||
|  | @ -54,25 +54,7 @@ EOF | ||||||
| 	TEMPLATE="$TEMPLATE_DIR/${file##etc/}" | 	TEMPLATE="$TEMPLATE_DIR/${file##etc/}" | ||||||
| 	echo -n " $file" | 	echo -n " $file" | ||||||
| 	if [ -f "$TEMPLATE" ]; then | 	if [ -f "$TEMPLATE" ]; then | ||||||
|             ( |             sed -f "$SED_SCRIPT" < $TEMPLATE > /$file | ||||||
|               echo '<?php' |  | ||||||
|               echo '/*****************************************************/' |  | ||||||
|               echo '/* /!\ DO NOT EDIT THIS FILE /!\                     */' |  | ||||||
|               echo '/* Edit the one in /etc/alternc/templates/roundcube/ */' |  | ||||||
|               echo '/* and launch alternc.install again.                 */' |  | ||||||
|               echo '/*****************************************************/' |  | ||||||
|               echo '' |  | ||||||
|             ) > /$file |  | ||||||
|             sed -f "$SED_SCRIPT" < $TEMPLATE >> /$file |  | ||||||
|              ( |  | ||||||
|               echo '' |  | ||||||
|               echo '/*****************************************************/' |  | ||||||
|               echo '/* /!\ DO NOT EDIT THIS FILE /!\                     */' |  | ||||||
|               echo '/* Edit the one in /etc/alternc/templates/roundcube/ */' |  | ||||||
|               echo '/* and launch alternc.install again.                 */' |  | ||||||
|               echo '/*****************************************************/' |  | ||||||
|               echo '?>' |  | ||||||
|             ) >> /$file |  | ||||||
| 	fi | 	fi | ||||||
|     done |     done | ||||||
| 
 | 
 | ||||||
|  | @ -84,15 +66,7 @@ EOF | ||||||
|         TEMPLATE="$TEMPLATE_DIR/${file##etc/}" |         TEMPLATE="$TEMPLATE_DIR/${file##etc/}" | ||||||
|         echo -n " $file" |         echo -n " $file" | ||||||
|         if [ -f "$TEMPLATE" ]; then |         if [ -f "$TEMPLATE" ]; then | ||||||
|             ( |             cat $TEMPLATE > /$file | ||||||
|               echo '#######################################################' |  | ||||||
|               echo '# /!\ DO NOT EDIT THIS FILE /!\                       #' |  | ||||||
|               echo '# Edit the one in /etc/alternc/templates/logrotate.d/ #' |  | ||||||
|               echo '# and launch alternc.install again.                   #' |  | ||||||
|               echo '#######################################################' |  | ||||||
|               echo '' |  | ||||||
|             ) > /$file |  | ||||||
|             cat $TEMPLATE >> /$file |  | ||||||
|         fi |         fi | ||||||
|     done |     done | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,3 +1,10 @@ | ||||||
|  | ###### | ||||||
|  | # Configuration file of Roundcube's logrotate for AlternC | ||||||
|  | # | ||||||
|  | # /!\ WARNING /!\ Do not edit this file, edit the one in | ||||||
|  | # /etc/alternc/templates/logrotate.d/ and launch alternc.install again. | ||||||
|  | ###### | ||||||
|  | 
 | ||||||
| /var/log/roundcube/password /var/log/roundcube/errors /var/log/roundcube/sendmail /var/log/roundcube/userlogins { | /var/log/roundcube/password /var/log/roundcube/errors /var/log/roundcube/sendmail /var/log/roundcube/userlogins { | ||||||
|   create 0640 alternc-roundcube root  |   create 0640 alternc-roundcube root  | ||||||
|   compress |   compress | ||||||
|  |  | ||||||
|  | @ -1,3 +1,12 @@ | ||||||
|  | <?php | ||||||
|  | 
 | ||||||
|  | /***********************************************************************/ | ||||||
|  | // Roundcube's Configuration file for AlternC                          //
 | ||||||
|  | //                                                                     //
 | ||||||
|  | // /!\ WARNING /!\ Do not edit this file, edit the one in              //
 | ||||||
|  | // /etc/alternc/templates/roundcube/ and launch alternc.install again. //
 | ||||||
|  | //                                                                     //
 | ||||||
|  | /***********************************************************************/ | ||||||
| 
 | 
 | ||||||
| /* | /* | ||||||
| +-----------------------------------------------------------------------+ | +-----------------------------------------------------------------------+ | ||||||
|  | @ -790,3 +799,5 @@ $rcmail_config['spellcheck_before_send'] = false; | ||||||
| $rcmail_config['autocomplete_single'] = false; | $rcmail_config['autocomplete_single'] = false; | ||||||
| 
 | 
 | ||||||
| // end of config file
 | // end of config file
 | ||||||
|  | 
 | ||||||
|  | ?>
 | ||||||
|  |  | ||||||
|  | @ -1,3 +1,13 @@ | ||||||
|  | <?php | ||||||
|  | 
 | ||||||
|  | /***********************************************************************/ | ||||||
|  | // Configuration file of managesieve's plugin of Roundcube for AlternC //
 | ||||||
|  | //                                                                     //
 | ||||||
|  | // /!\ WARNING /!\ Do not edit this file, edit the one in              //
 | ||||||
|  | // /etc/alternc/templates/roundcube/plugins/managesieve/               //
 | ||||||
|  | // and launch alternc.install again.                                   //
 | ||||||
|  | //                                                                     //
 | ||||||
|  | /***********************************************************************/ | ||||||
| 
 | 
 | ||||||
| // managesieve server port
 | // managesieve server port
 | ||||||
| $rcmail_config['managesieve_port'] = 2000; | $rcmail_config['managesieve_port'] = 2000; | ||||||
|  | @ -63,3 +73,4 @@ $rcmail_config['managesieve_filename_extension'] = '.sieve'; | ||||||
| // Scripts listed here will be not presented to the user.
 | // Scripts listed here will be not presented to the user.
 | ||||||
| $rcmail_config['managesieve_filename_exceptions'] = array(); | $rcmail_config['managesieve_filename_exceptions'] = array(); | ||||||
| 
 | 
 | ||||||
|  | ?>
 | ||||||
|  |  | ||||||
|  | @ -1,3 +1,13 @@ | ||||||
|  | <?php | ||||||
|  | 
 | ||||||
|  | /***********************************************************************/ | ||||||
|  | // Configuration file of password's plugin of Roundcube for AlternC    //
 | ||||||
|  | //                                                                     //
 | ||||||
|  | // /!\ WARNING /!\ Do not edit this file, edit the one in              //
 | ||||||
|  | // /etc/alternc/templates/roundcube/plugins/password/                  //
 | ||||||
|  | // and launch alternc.install again.                                   //
 | ||||||
|  | //                                                                     //
 | ||||||
|  | /***********************************************************************/ | ||||||
| 
 | 
 | ||||||
| // Password Plugin options
 | // Password Plugin options
 | ||||||
| // -----------------------
 | // -----------------------
 | ||||||
|  | @ -305,3 +315,4 @@ $rcmail_config['hmailserver_server'] = array( | ||||||
| // 7: domain_username
 | // 7: domain_username
 | ||||||
| $rcmail_config['password_virtualmin_format'] = 0; | $rcmail_config['password_virtualmin_format'] = 0; | ||||||
| 
 | 
 | ||||||
|  | ?>
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Axel ROGER
						Axel ROGER