Skip to content

Commit f817f4c

Browse files
authored
Update script.sh
1 parent d2ec6d7 commit f817f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ install_wordpress() {
6868
# create wp config
6969
cp wp-config-sample.php wp-config.php
7070

71-
# set database details with perl find and replace
71+
# set database details (find and replace)
7272
sed -i "s/database_name_here/$dbname/g" wp-config.php
7373
sed -i "s/username_here/$dbuser/g" wp-config.php
7474
sed -i "s/password_here/$dbpass/g" wp-config.php
@@ -80,7 +80,7 @@ install_wordpress() {
8080
push @chars, split //, "!@#$%^&*()-_ []{}<>~\`+=,.;:/?|";
8181
sub salt { join "", map $chars[ rand @chars ], 1 .. 64 }
8282
}
83-
s/put your unique phrase here//ge
83+
s/put your unique phrase here/salt()/ge
8484
' wp-config.php
8585

8686
# create uploads folder and set permissions

0 commit comments

Comments
 (0)