From 8e42ead28deb9398ff485ceeb7ab223694bb57b1 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 7 Aug 2018 16:39:16 +0100 Subject: [PATCH] Update to aquarius-wp-config --- bin/aquarius-wpconfig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/aquarius-wpconfig b/bin/aquarius-wpconfig index 3c436361..7aa0175a 100755 --- a/bin/aquarius-wpconfig +++ b/bin/aquarius-wpconfig @@ -25,9 +25,13 @@ if [ -f "$DIR/wp-config.php" ]; then fi fi -echo "Downloading sample" +if [ ! -f "$DIR/wp-config-sample.php" ]; then + echo "File not found!" + echo "Downloading sample" + curl "https://raw.githubusercontent.com/WordPress/WordPress/master/wp-config-sample.php" -o wp-config.php +fi -curl "https://raw.githubusercontent.com/WordPress/WordPress/master/wp-config-sample.php" -o wp-config.php +cp wp-config-sample.php wp-config.php echo "Downloading Salts" @@ -45,6 +49,7 @@ wp config set 'DB_USER' "root" > /dev/null wp config set 'DB_PASSWORD' "root" > /dev/null wp config set 'DB_HOST' "localhost" > /dev/null +wp config set 'JQUERY' "/wp-includes/js/jquery/jquery.js" --type=constant > /dev/null echo -e "Would you like to have debug on? [y/N] \c" read input