Skip to content

Commit ebe0cf5

Browse files
author
Daniel Hansson
committed
final touches
1 parent 471cee2 commit ebe0cf5

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

static/welcome.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
<h1><a href="https://www.techandme.se/user-pass/" target="_blank">Login</a> to Wordpress</h1>
1111
<h3>Default User:</h3>
12-
<h1><strong>wordpress</strong></h1>
12+
<h1><strong>wordpress_user_login</strong></h1>
1313
<h3>Default Password:</h3>
14-
<h1><strong>wordpress</strong></h1>
14+
<h1><strong>wordpress_password_login</strong></h1>
1515
<h3>Note: The setup script will ask you to change the default password to your own.</h3>
1616
&nbsp;
1717

@@ -31,7 +31,7 @@
3131

3232
<hr />
3333

34-
<h1><a href=".:1000">Access Webmin</a></h1>
34+
<h1><a href=":10000">Access Webmin</a> (You may have to remove the ending slash (/) to access the port number)</h1>
3535
<h3>Note: Please accept the warning in the browser if you connect via HTTPS.</h3>
3636
<h1><a href="https://www.techandme.se/user-and-password/" target="_blank">Login details</a></h1>
3737
<h3>Note: Webmin is installed when you run the setup script. To access Webmin externally you have to open port 10000 in your router.</h3>

wordpress_install.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,16 @@ echo "Wordpress DB: $WPDBPASS" >> $PW_FILE
253253
wp core install --allow-root --url=http://$ADDRESS/ --title=Wordpress --admin_user=$WPADMINUSER --admin_password=$WPADMINPASS [email protected] --skip-email
254254
echo "WP PASS: $WPADMINPASS" > /var/adminpass.txt
255255
chown wordpress:wordpress /var/adminpass.txt
256-
wget $STATIC/welcome.txt | wp post create ./welcome.txt --post_title='Tech and Me - Welcome' --post_status=publish --path=$WPATH --allow-root
256+
257+
# Create welcome post
258+
wget -q $STATIC/welcome.txt
259+
sed -i "s|wordpress_user_login|$WPADMINUSER|g" welcome.txt
260+
sed -i "s|wordpress_password_login|$WPADMINPASS|g" welcome.txt
261+
wp post create ./welcome.txt --post_title='Tech and Me - Welcome' --post_status=publish --path=$WPATH --allow-root
257262
rm welcome.txt
263+
wp post delete 1 --force --allow-root
258264

265+
# Show version
259266
wp core version --allow-root
260267
sleep 3
261268

0 commit comments

Comments
 (0)