fixing bug which removes mysql password instead of wordpress

This commit is contained in:
2015-07-13 14:37:28 +03:00
parent cd62d588b1
commit 66de5590cd
2 changed files with 4 additions and 4 deletions

View File

@@ -482,8 +482,8 @@ if [ "$ACTION" == "uninstallwp" ]; then
rm -rf $WEBDIR/.* rm -rf $WEBDIR/.*
# Update datasheet # Update datasheet
LEAD='## > MYSQL' LEAD='## > WORDPRESS'
TAIL='## < MYSQL' TAIL='## < WORDPRESS'
notesdelete ".*" notesdelete ".*"

View File

@@ -26,7 +26,7 @@ $ACTION = escapeshellarg($ACTION);
$USER = escapeshellarg($USER); $USER = escapeshellarg($USER);
$RAND = mt_rand(100000, 999999); $RAND = mt_rand(100000, 999999);
$PASSFILE = $RAND . '.pass'; $PASSFILE = '.' . $RAND . '.pass';
file_put_contents($PASSFILE, $PASS); file_put_contents($PASSFILE, $PASS);
@@ -46,7 +46,7 @@ else
} }
// Delete passfile // Delete passfile
//unlink($PASSFILE); unlink($PASSFILE);
?> ?>