Skip to content

Commit 165aba0

Browse files
Josh GachnangJosh Gachnang
authored andcommitted
Added FTP settings for plugins to wordpress, and displaying username
passwords and MySQL username and password.
1 parent 9a1232e commit 165aba0

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

install-wordpress.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ define('DB_CHARSET', 'utf8');
105105
/** The Database Collate type. Don't change this if in doubt. */
106106
define('DB_COLLATE', '');
107107
108+
/** The FTP settings. These settings are assumed, and if using
109+
the ServerCobra set of scripts, it will work automagically */
110+
/* WordPress FTP Information (For removing the constant password request on plugin install and removal) */
111+
112+
define("FTP_HOST", "$1");
113+
define("FTP_USER", "$DOMAIN_NAME");
114+
define("FTP_PASS", "$USER_PASS");
115+
108116
/**#@+
109117
* Authentication Unique Keys and Salts.
110118
*
@@ -160,8 +168,18 @@ require_once(ABSPATH . 'wp-settings.php');" >> wp-config.php
160168
# the security keys.
161169
rm index.html
162170

171+
#Make sure no one can read this file, since it has all the passwords and such
172+
chmod 770 $DOMAIN_NAME wp-config.php
173+
163174
#Installation is now complete..
164175

176+
echo "////////////////////////////////////////////////////////////////////////////////"
165177
echo "Install completed successfully!"
166178
echo "Please visit http://$1/wp-admin/install.php to finalize your installation."
167-
179+
echo ""
180+
echo "Your new wordpress username is: $DOMAIN_NAME"
181+
echo "with password: $USER_PASS"
182+
echo "and your MySQL username is: $DOMAIN_NAME"
183+
echo "with password: $DB-PASS"
184+
echo ""
185+
echo "You can also find these in wp-config.php"

0 commit comments

Comments
 (0)