[-]
[+]
|
Added |
vhcs2.spec
|
|
[-]
[+]
|
Added |
2.4.7.1_crontab.diff
^
|
@@ -0,0 +1,11 @@
+--- var/spool/cron/tabs/root.orig 2006-01-03 20:36:30.000000000 +0100
++++ var/spool/cron/tabs/root 2006-01-03 20:36:51.000000000 +0100
+@@ -11,7 +11,7 @@
+
+ 0,30 * * * * /srv/www/vhcs2/engine/traffic/vhcs2-vrl-traff &>/var/log/vhcs2/vhcs2-vrl-traff.log
+
+-0 1 * * * /srv/www/vhcs2/engine/tools/vhcs2-backup-all yes &>/var/log/vhcs2/vhcs2-backup-all-mngr.log
++0 1 * * * /srv/www/vhcs2/engine/backup/vhcs2-backup-all yes &>/var/log/vhcs2/vhcs2-backup-all-mngr.log
+
+ # [{DMN_NAME}] backup task START.
+ # [{DMN_NAME}] backup task END.
|
[-]
[+]
|
Added |
2.4.7.1_suse_master_cf.diff
^
|
@@ -0,0 +1,10 @@
+Index: trunk/configs/dists/suse/postfix/master.cf
+===================================================================
+--- etc/postfix/master.cf (Revision 209)
++++ etc/postfix/master.cf (Revision 283)
+@@ -78,4 +78,4 @@
+ # vhcs delivery agent.
+ #
+
+-vhcs2-arpl unix - n n - - pipe flags=D user=vmail argv=/srv/www/vhcs2/engine/messager/vhcs2-arpl-msgr
++vhcs2-arpl unix - n n - - pipe flags=O user=vmail argv=/srv/www/vhcs2/engine/messager/vhcs2-arpl-msgr
|
[-]
[+]
|
Added |
vhcs2_sysconfig_named.diff
^
|
@@ -0,0 +1,11 @@
+--- etc/sysconfig/named.orig 2005-12-23 18:18:17.000000000 +0100
++++ etc/sysconfig/named 2005-12-23 18:18:35.000000000 +0100
+@@ -51,7 +51,7 @@
+ #
+ # Example: "/etc/named-dhcpd.key ldap.dump rndc-access.conf"
+ #
+-NAMED_CONF_INCLUDE_FILES=""
++NAMED_CONF_INCLUDE_FILES="named.conf"
+
+ ## Type: string
+ ## Default: "createNamedConfInclude"
|
[-]
[+]
|
Added |
smtpd.conf
^
|
@@ -0,0 +1,2 @@
+pwcheck_method: auxprop
+mech_list: plain login
|
[-]
[+]
|
Added |
vhcs2_run_mysql_update.sh
^
|
@@ -0,0 +1,71 @@
+#!/bin/bash
+########################################################################
+#
+# Execute SQL querys and get DB configuration data from vhcs2.conf
+#
+# Author: Carsten Schoene
+# Last change: 04.01.2006
+#
+########################################################################
+#
+# check if config exists
+if [ -f /etc/vhcs2/vhcs2.conf ] ; then
+
+
+for a in `cat /etc/vhcs2/vhcs2.conf | grep ^DATABASE | sed -e s@" "@""@g`
+do
+ export $a
+done
+
+
+# use vhcs2 function to decrypt password from config
+PHPCODE="
+<?
+include('/srv/www/vhcs2/gui/include/vhcs2-db-keys.php');
+include('/srv/www/vhcs2/gui/include/vhcs-config.php');
+echo decrypt_db_password(\"$DATABASE_PASSWORD\");
+?>
+"
+
+# we only decrypt non-empty passwords
+if [ "${DATABASE_PASSWORD}" != "" ] ; then
+# overwrite variable with decrypted value
+DATABASE_PASSWORD=`echo -e ${PHPCODE} | php`
+fi
+
+if [ $# -gt 1 ] ; then
+ if [ "$1" == "-f" ] ; then
+ if [ -f "$2" ] ; then
+ FILE=$2
+ APPEND="< ${FILE}"
+ else
+ echo "file: $2 not found"
+ exit 1
+ fi
+ else
+ echo "invalid command line syntax:"
+ echo "Usage: $0 <QUERY | -f FILE>"
+ exit 1
+ fi
+else
+ QUERY=$1
+ APPEND="-e \"${QUERY}\""
+fi
+
+if [ -n "${DATABASE_USER}" ] && [ -n "${DATABASE_PASSWORD}" -o "${DATABASE_PASSWORD}" == "" ] && [ -n "${DATABASE_HOST}" ] && [ -n "${DATABASE_NAME}" ] && [ -n "${APPEND}" ] ; then
+
+ # run the sql query
+ if [ "${DATABASE_PASSWORD}" == "" ] ; then
+ echo mysql --skip-column-names -u ${DATABASE_USER} -h ${DATABASE_HOST} ${DATABASE_NAME} "${APPEND}" | sh
+ else
+ echo mysql --skip-column-names -u ${DATABASE_USER} -p${DATABASE_PASSWORD} -h ${DATABASE_HOST} ${DATABASE_NAME} "${APPEND}" | sh
+ fi
+
+else
+ echo "Can't import correct database settings from vhcs2.conf!"
+ echo "Database specific update failed!"
+ exit 1
+fi
+
+fi # endif config exists
+exit 0
|