@@ -138,14 +138,13 @@ download_script MENU server_configuration
138
138
download_script MENU additional_apps
139
139
140
140
# 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 "
143
143
144
144
# Allow wordpress to run figlet script
145
- chown " $UNIXUSER " :" $UNIXUSER " $SCRIPTS /wordpress.sh
145
+ chown " $UNIXUSER " :" $UNIXUSER " " $SCRIPTS " /wordpress.sh
146
146
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
149
148
150
149
- Genereate new server SSH keys
151
150
- Set static IP
@@ -156,7 +155,6 @@ msg_box"This script will do the final setup for you
156
155
- Set new password to the Linux system (user: wordpress)
157
156
158
157
############### T&M Hansson IT AB - $( date +" %Y" ) ###############"
159
- clear
160
158
161
159
msg_box " PLEASE NOTE:
162
160
[#] Please finish the whole setup. The server will reboot once done.
@@ -189,10 +187,10 @@ check_command bash "$SCRIPTS/change_db_pass.sh"
189
187
sleep 3
190
188
191
189
# Server configurations
192
- bash $SCRIPTS /server_configuration.sh
190
+ bash " $SCRIPTS " /server_configuration.sh
193
191
194
192
# Install apps
195
- bash $SCRIPTS /additional_apps.sh
193
+ bash " $SCRIPTS " /additional_apps.sh
196
194
197
195
198
196
# ## Change passwords
272
270
print_text_in_color " $ICyan " " This is the current administrator(s):"
273
271
wp_cli_cmd user list --role=administrator --path=" $WPATH "
274
272
any_key " Press any key to continue..."
275
- clear
276
273
277
274
# Cleanup 1
278
275
rm -f " $SCRIPTS /change_db_pass.sh"
@@ -319,7 +316,7 @@ ROOTNEWPROFILE
319
316
320
317
# Upgrade system
321
318
print_text_in_color " $ICyan " " System will now upgrade..."
322
- bash $SCRIPTS /update.sh
319
+ bash " $SCRIPTS " /update.sh
323
320
324
321
# Cleanup 2
325
322
apt autoremove -y
0 commit comments