[-]
[+]
|
Changed |
vhcs2.spec
|
|
|
Added |
vhcs2-2.4.8-20091015.tar.bz2
^
|
[-]
[+]
|
Changed |
vhcs2_run_mysql_update.sh
^
|
@@ -19,6 +19,15 @@
# use vhcs2 function to decrypt password from config
+if [ -f /etc/redhat-release ] ; then
+PHPCODE="
+<?php
+include('/var/www/vhcs2/gui/include/vhcs2-db-keys.php');
+include('/var/www/vhcs2/gui/include/vhcs-config.php');
+echo decrypt_db_password(\"$DATABASE_PASSWORD\");
+?>
+"
+else
PHPCODE="
<?php
include('/srv/www/vhcs2/gui/include/vhcs2-db-keys.php');
@@ -26,6 +35,7 @@
echo decrypt_db_password(\"$DATABASE_PASSWORD\");
?>
"
+fi
# we only decrypt non-empty passwords
if [ "${DATABASE_PASSWORD}" != "" ] ; then
|