@@ -138,14 +138,13 @@ download_script MENU server_configuration
138138download_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
161159msg_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"
189187sleep 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
272270print_text_in_color " $ICyan " " This is the current administrator(s):"
273271wp_cli_cmd user list --role=administrator --path=" $WPATH "
274272any_key " Press any key to continue..."
275- clear
276273
277274# Cleanup 1
278275rm -f " $SCRIPTS /change_db_pass.sh"
@@ -319,7 +316,7 @@ ROOTNEWPROFILE
319316
320317# Upgrade system
321318print_text_in_color " $ICyan " " System will now upgrade..."
322- bash $SCRIPTS /update.sh
319+ bash " $SCRIPTS " /update.sh
323320
324321# Cleanup 2
325322apt autoremove -y
0 commit comments