Skip to content

Commit 3d78831

Browse files
author
enoch85
committed
some more fixes
1 parent cd0a803 commit 3d78831

File tree

5 files changed

+28
-36
lines changed

5 files changed

+28
-36
lines changed

index.php

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
22
<html>
3-
<head><title>ownCloud - Tech and Me</title>
3+
<head><title>Wordpress - Tech and Me</title>
44
<style>
55
body {
6-
background-color: #1d2d44;
6+
background-image: url("https://www.techandme.se/wp-content/uploads/2015/12/bbbackground-1200-1024x683.jpg");
77
font-weight: 300;
88
font-size: 1em;
99
line-height: 1.6em;
@@ -14,21 +14,13 @@
1414
margin-right: auto;
1515
align: center;
1616
text-align: center;
17-
background: #1d2d44; /* Old browsers */
18-
background: -moz-linear-gradient(top, #35537a 0%, #1d2d44 100%); /* FF3.6+ */
19-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#35537a), color-stop(100%,#1d2d44)); /* Chrome,Safari4+ */
20-
background: -webkit-linear-gradient(top, #35537a 0%,#1d2d44 100%); /* Chrome10+,Safari5.1+ */
21-
background: -o-linear-gradient(top, #35537a 0%,#1d2d44 100%); /* Opera11.10+ */
22-
background: -ms-linear-gradient(top, #35537a 0%,#1d2d44 100%); /* IE10+ */
23-
background: linear-gradient(top, #35537a 0%,#1d2d44 100%); /* W3C */
24-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#35537a', endColorstr='#1d2d44',GradientType=0 ); /* IE6-9 */
2517
}
2618
div.logotext {
2719
width: 50%;
2820
margin: 0 auto;
2921
}
3022
div.logo {
31-
background-image: url('/owncloud/core/img/logo-icon.svg');
23+
background-image: url('https://www.techandme.se/wp-content/uploads/2015/01/WordPress-Logo-540x348.png');
3224
background-repeat: no-repeat; top center;
3325
width: 50%;
3426
height: 25%;
@@ -78,44 +70,44 @@
7870
<div class="logo">
7971
</div>
8072
<div class="logotext">
81-
<h2>ownCloud VM - <a href="https://www.techandme.se/pre-configured-owncloud-installaton/" target="_blank">Tech and Me</a></h2>
73+
<h2>ownCloud VM - <a href="https://www.techandme.se/pre-configured-wordpress-installaton/" target="_blank">Tech and Me</a></h2>
8274
</div>
8375
<br>
8476
<div class="information">
85-
<p>Thank you for downloading the pre-configured ownCloud VM! If you see this page, you have successfully mounted the ownCloud VM on the computer that will act as host for ownCloud.</p>
77+
<p>Thank you for downloading the pre-configured Wordpress VM! If you see this page, you have successfully mounted the Wordpress VM on the computer that will act as host for Wordpress.</p>
8678
<p>To complete the installation, please run the setup script. You can find login details in the middle of this page.
87-
<p>Don't hesitate to ask if you have any questions. My email is: <a href="mailto:[email protected]?Subject=Before%20login%20-%20ownCloud%20VM" target="_top">[email protected]</a> You can also check the <a href="https://www.techandme.se/complete-install-instructions-owncloud/" target="_blank">complete install instructions</a>.</p>
79+
<p>Don't hesitate to ask if you have any questions. My email is: <a href="mailto:[email protected]?Subject=Before%20login%20-%20Wordpress%20VM" target="_top">[email protected]</a> You can also check the <a href="https://www.techandme.se/complete-install-instructions-wordpress/" target="_blank">complete install instructions</a>.</p>
8880
<p>Please <a href="https://www.techandme.se/thank_you">donate</a> if you like it. All the donations will go to server costs and developing, making this VM even better.</p>
8981

9082
</div>
9183

92-
<h2><a href="https://www.techandme.se/user-and-password/" target="_blank">Login</a> to ownCloud</h2>
84+
<h2><a href="https://www.techandme.se/user-pass/" target="_blank">Login</a> to Wordpress</h2>
9385

9486
<div class="information">
9587
<p>Default User:</p>
96-
<h3>ocadmin</h3>
88+
<h3>wordpress</h3>
9789
<p>Default Password:</p>
98-
<h3>owncloud</h3>
99-
<p>Note: The setup script will ask you to change the default password to your own. It's also recomended to change the default user. Do this by adding another admin user, log out from ocadmin, and login with your new user, then delete ocadmin.</p>
90+
<h3>wordpress</h3>
91+
<p>Note: The setup script will ask you to change the default password to your own. It's also recomended to change the default user. Do this by adding another admin user. Don't forget to delete the old user "change_wordpress_user#" after you created you new admin account.</p>
10092
<br>
10193
<center>
10294
<h3> How to mount the VM and and login:</h3>
10395
</center>
104-
<p>Before you can use ownCloud you have to run the setup script to complete the installation. This is easily done by just typing 'owncloud' when you log in to the terminal for the first time.</p>
105-
<p>The full path to the setup script is: /var/scripts/owncloud-startup-script.sh. When the script is finnished it will be deleted, as it's only used the first time you boot the machine.</p>
96+
<p>Before you can use Wordpress you have to run the setup script to complete the installation. This is easily done by just typing 'wordpress' when you log in to the terminal for the first time.</p>
97+
<p>The full path to the setup script is: /var/scripts/wordpress-startup-script.sh. When the script is finished it will be deleted, as it's only used the first time you boot the machine.</p>
10698
<center>
10799
<iframe width="560" height="315" src="https://www.youtube.com/embed/jhbkTQ9yA-4" frameborder="0" allowfullscreen></iframe>
108100
</center>
109101
</div>
110102

111-
<h2>Access ownCloud</h2>
103+
<h2>Access Wordpress</h2>
112104

113105
<div class="information">
114106
<p>Use one of the following addresses, HTTPS is preffered:
115107
<h3>
116108
<ul>
117-
<li><a href="http://<?=$_SERVER['SERVER_NAME'];?>/owncloud" >http://<?=$_SERVER['SERVER_NAME'];?></a> (HTTP)
118-
<li><a href="https://<?=$_SERVER['SERVER_NAME'];?>/owncloud" >https://<?=$_SERVER['SERVER_NAME'];?></a> (HTTPS)
109+
<li><a href="http://<?=$_SERVER['SERVER_NAME'];?>/wordpress" >http://<?=$_SERVER['SERVER_NAME'];?></a> (HTTP)
110+
<li><a href="https://<?=$_SERVER['SERVER_NAME'];?>/wordpress" >https://<?=$_SERVER['SERVER_NAME'];?></a> (HTTPS)
119111
<p>
120112
</ul>
121113
</h3>

ip.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
IFCONFIG="/sbin/ifconfig"
44
IP="/sbin/ip"
55
INTERFACES="/etc/network/interfaces"
6-
IFACE=$($IFCONFIG | grep HWaddr | cut -d " " -f 1)
76

7+
IFACE=$($IFCONFIG | grep HWaddr | cut -d " " -f 1)
88
ADDRESS=$($IFCONFIG | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
9-
NETMASK=$($IFCONFIG | grep -w inet |grep -v 127.0.0.1| awk '{print $4}' | cut -d ":" -f 2
9+
NETMASK=$($IFCONFIG | grep -w inet |grep -v 127.0.0.1| awk '{print $4}' | cut -d ":" -f 2)
1010
GATEWAY=$($IP route | awk '/\<default\>/ {print $3; exit}')
1111

1212
cat <<-IPCONFIG > "$INTERFACES"

wordpress-startup-script.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
WWW_ROOT=/var/www/html
66
WPATH=$WWW_ROOT/wordpress
77
SCRIPTS=/var/scripts
8-
PW_FILE=/var/mysql_password.txt # Keep in sync with owncloud_install_production.sh
8+
PW_FILE=/var/mysql_password.txt # Keep in sync with wordpress_install_production.sh
99
IFCONFIG="/sbin/ifconfig"
1010
IFACE=$($IFCONFIG | grep HWaddr | cut -d " " -f 1)
1111
ADDRESS=$($IFCONFIG | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
@@ -18,7 +18,7 @@ LETS_ENC="https://raw.githubusercontent.com/enoch85/ownCloud-VM/master/lets-encr
1818
# Check if root
1919
if [ "$(whoami)" != "root" ]; then
2020
echo
21-
echo -e "\e[31mSorry, you are not root.\n\e[0mYou must type: \e[36msudo \e[0mbash $SCRIPTS/owncloud-startup-script.sh"
21+
echo -e "\e[31mSorry, you are not root.\n\e[0mYou must type: \e[36msudo \e[0mbash $SCRIPTS/wordpress-startup-script.sh"
2222
echo
2323
exit 1
2424
fi
@@ -90,7 +90,7 @@ fi
9090
else
9191
wget -q $GITHUB_REPO/index.php -P $SCRIPTS
9292
fi
93-
mv $SCRIPTS/index.php $WWW_ROOT/index.php && rm -f $WWW_ROOT/html/index.html
93+
mv $SCRIPTS/index.php $WWW_ROOT/index.php && rm -f $WWW_ROOT/index.html
9494
chmod 750 $WWW_ROOT/index.php && chown www-data:www-data $WWW_ROOT/index.php
9595

9696
# Change 000-default to $WEB_ROOT
@@ -100,7 +100,7 @@ fi
100100
chmod +x -R $SCRIPTS
101101
chown root:root -R $SCRIPTS
102102

103-
# Allow ocadmin to run figlet script
103+
# Allow wordpress to run figlet script
104104
chown wordpress:wordpress $SCRIPTS/techandme.sh
105105

106106
clear
@@ -211,7 +211,7 @@ clear
211211
# Change password
212212
echo -e "\e[0m"
213213
echo "For better security, change the Linux password for user [wordpress]"
214-
echo "The current password is [owncloud]"
214+
echo "The current password is [wordpress]"
215215
echo -e "\e[32m"
216216
read -p "Press any key to change password for Linux... " -n1 -s
217217
echo -e "\e[0m"
@@ -232,7 +232,7 @@ function ask_yes_or_no() {
232232
*) echo "no" ;;
233233
esac
234234
}
235-
if [[ "yes" == $(ask_yes_or_no "Last but not least, do you want to install a real SSL cert (from Let's Encrypt) on this machine? The script is still Alpha, feel free to contribute!") ]]
235+
if [[ "yes" == $(ask_yes_or_no "Last but not least, do you want to install a real SSL cert from Let's Encrypt on this machine? (The script is still Alpha, feel free to contribute!)") ]]
236236
then
237237
bash $SCRIPTS/activate-ssl.sh
238238
else

wordpress_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ fi
328328
wget -q $GITHUB_REPO/wordpress-startup-script.sh -P $SCRIPTS
329329
fi
330330

331-
# Welcome message after login (change in /home/ocadmin/.profile
331+
# Welcome message after login (change in /home/wordpress/.profile
332332
if [ -f $SCRIPTS/instruction.sh ];
333333
then
334334
echo "instruction.sh exists"
@@ -354,7 +354,7 @@ else
354354
rm $SCRIPTS/change-root-profile.sh
355355
sleep 2
356356
fi
357-
# Change ocadmin profile
357+
# Change wordpress profile
358358
bash $SCRIPTS/change-wordpress-profile.sh
359359
if [[ $? > 0 ]]
360360
then

wordpress_update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ wp db optimize --allow-root
2222
echo
2323
echo "This is the current version installed:"
2424
echo
25-
wp wp core version --extra --allow-root
25+
wp core version --extra --allow-root
2626
sleep 5
2727

2828
# Set secure permissions
@@ -32,9 +32,9 @@ then
3232
echo "Script exists"
3333
else
3434
mkdir -p /var/scripts
35-
wget https://raw.githubusercontent.com/enoch85/wordpress-vm/master/wp_permissions.sh -P /var/scripts/
35+
wget -q https://raw.githubusercontent.com/enoch85/wordpress-vm/master/wp-permissions.sh -P /var/scripts/
3636
fi
37-
sudo bash /var/scripts/wp_permissions.sh
37+
sudo bash /var/scripts/wp-permissions.sh
3838

3939
# Cleanup un-used packages
4040
sudo apt-get autoremove -y

0 commit comments

Comments
 (0)