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/.*
# Update datasheet
LEAD='## > MYSQL'
TAIL='## < MYSQL'
LEAD='## > WORDPRESS'
TAIL='## < WORDPRESS'
notesdelete ".*"

View File

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