Skip to content

Commit c16f2fa

Browse files
authored
change to mariadb 10.10 (#84)
1 parent f49552f commit c16f2fa

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

static/instruction.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cat << WELCOME
77
+-----------------------------------------------------------------------+
88
|Thank you for downloading this Wordpress VM made by T&M Hansson IT AB! |
99
| |
10-
|This WordPress appliance comes with PHP 7.4, NGINX and Redis Cache for |
10+
|This WordPress appliance comes with PHP 8.1, NGINX and Redis Cache for |
1111
|best performance. The site(s) load very fast! |
1212
| |
1313
|In order to configure everything you have to run the setup script |

wordpress-startup-script.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,13 @@ download_script MENU server_configuration
138138
download_script MENU additional_apps
139139

140140
# Make $SCRIPTS excutable
141-
chmod +x -R $SCRIPTS
142-
chown root:root -R $SCRIPTS
141+
chmod +x -R "$SCRIPTS"
142+
chown root:root -R "$SCRIPTS"
143143

144144
# Allow wordpress to run figlet script
145-
chown "$UNIXUSER":"$UNIXUSER" $SCRIPTS/wordpress.sh
145+
chown "$UNIXUSER":"$UNIXUSER" "$SCRIPTS"/wordpress.sh
146146

147-
clear
148-
msg_box"This script will do the final setup for you
147+
msg_box "This script will do the final setup for you
149148
150149
- Genereate new server SSH keys
151150
- Set static IP
@@ -156,7 +155,6 @@ msg_box"This script will do the final setup for you
156155
- Set new password to the Linux system (user: wordpress)
157156
158157
############### T&M Hansson IT AB - $(date +"%Y") ###############"
159-
clear
160158

161159
msg_box "PLEASE NOTE:
162160
[#] Please finish the whole setup. The server will reboot once done.
@@ -189,10 +187,10 @@ check_command bash "$SCRIPTS/change_db_pass.sh"
189187
sleep 3
190188

191189
# Server configurations
192-
bash $SCRIPTS/server_configuration.sh
190+
bash "$SCRIPTS"/server_configuration.sh
193191

194192
# Install apps
195-
bash $SCRIPTS/additional_apps.sh
193+
bash "$SCRIPTS"/additional_apps.sh
196194

197195

198196
### Change passwords
@@ -272,7 +270,6 @@ echo
272270
print_text_in_color "$ICyan" "This is the current administrator(s):"
273271
wp_cli_cmd user list --role=administrator --path="$WPATH"
274272
any_key "Press any key to continue..."
275-
clear
276273

277274
# Cleanup 1
278275
rm -f "$SCRIPTS/change_db_pass.sh"
@@ -319,7 +316,7 @@ ROOTNEWPROFILE
319316

320317
# Upgrade system
321318
print_text_in_color "$ICyan" "System will now upgrade..."
322-
bash $SCRIPTS/update.sh
319+
bash "$SCRIPTS"/update.sh
323320

324321
# Cleanup 2
325322
apt autoremove -y

wordpress_install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ done
204204

205205
# Install MariDB repos
206206
install_if_not software-properties-common
207-
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-11.0" --skip-maxscale
207+
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-10.10" --skip-maxscale
208208
# Avoid i386 since we use x64
209209
sed -i "s|deb http|deb [arch=amd64] http|g" /etc/apt/sources.list.d/mariadb.list
210210
# USed debconf to install it
211-
sudo debconf-set-selections <<< "mariadb-server-11.0 mysql-server/root_password password $MARIADB_PASS"
212-
sudo debconf-set-selections <<< "mariadb-server-11.0 mysql-server/root_password_again password $MARIADB_PASS"
213-
install_if_not mariadb-server-11.0
211+
sudo debconf-set-selections <<< "mariadb-server-10.10 mysql-server/root_password password $MARIADB_PASS"
212+
sudo debconf-set-selections <<< "mariadb-server-10.10 mysql-server/root_password_again password $MARIADB_PASS"
213+
install_if_not mariadb-server-10.10
214214

215215
# mysql_secure_installation
216216
install_if_not expect

0 commit comments

Comments
 (0)