You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added support for Amazon S3 cloud backup.
- Fully revised the cron backups for local, dropbox, and s3.
- Changed cron firing times.
- Added a cron to scan the uploads directory for potentially unwanted
.php files.
- Added new commands that can run from the terminal.
- Added preinstall checks.
- Changed mysql default character set to utf8mb4
echo -e "ATTENTION\n\nServer needs to reboot at the end of this script.\nEnter command es.menu after reboot to continue.\n\nScript will continue in 5 seconds..."| boxes -a c -d shell -p a1l2
38
+
echo -e "\nATTENTION:\n\nServer needs to reboot at the end of this script.\nEnter command es.menu after reboot to continue.\n\nScript will continue in 5 seconds..."| boxes -a c -d shell -p a1l2
38
39
sleep 5
39
40
40
41
if [ "${SERVER_MEMORY_TOTAL_80}"-lt 1000 ];
@@ -45,7 +46,140 @@ if [ "${SERVER_MEMORY_TOTAL_80}" -lt 1000 ];
45
46
echo"You may need to manually change memory limits in PHP and MariaDB."
46
47
sleep 10
47
48
else
48
-
echo"80% of total server memory: ${SERVER_MEMORY_TOTAL_80}"
49
+
echo"Memory Test: 80% of total server memory: ${SERVER_MEMORY_TOTAL_80}"
if [ "$INSTALL_S3_BACKUP"= 1 ] && [ "$S3_BUCKET_NAME"= PLACEHOLDER ];
103
+
then
104
+
echo -e "\nWARNING:\n\nYou have set INSTALL_S3_BACKUP=1 but have not properly set S3_BUCKET_NAME.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change S3_BUCKET_NAME to show your bucket name instead of PLACEHOLDER\nYou can also disabled S3 cloud backup by setting INSTALL_S3_BACKUP=0\n"
105
+
exit
106
+
fi
107
+
108
+
# Check S3 Bucket Name
109
+
if [ "$INSTALL_S3_BACKUP"= 0 ] && [ "$S3_BUCKET_NAME"!= PLACEHOLDER ];
110
+
then
111
+
echo -e "\nWARNING:\n\nYou have set INSTALL_S3_BACKUP=0 but have changed S3_BUCKET_NAME from PLACEHOLDER.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change INSTALL_S3_BACKUP to 1. If this is a mistake, you can avoid this error by setting S3_BUCKET_NAME to PLACEHOLDER\n"
112
+
exit
113
+
fi
114
+
115
+
# Check Cloudflare Global API Key
116
+
if [ "$CF_GLOBAL_API_KEY"= PLACEHOLDER ] && [ "$CF_ACCOUNT_EMAIL"= PLACEHOLDER ];
117
+
then
118
+
echo -e "\nWARNING:\n\nCF_GLOBAL_API_KEY is to PLACEHOLDER. EngineScript requires this be set prior to installation.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change CF_GLOBAL_API_KEY to the correct value.\n"
119
+
exit
120
+
fi
121
+
122
+
# Check Cloudflare Account Email
123
+
if [ "$CF_ACCOUNT_EMAIL"= PLACEHOLDER ];
124
+
then
125
+
echo -e "\nWARNING:\n\nCF_ACCOUNT_EMAIL is to PLACEHOLDER. EngineScript requires this be set prior to installation.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change CF_ACCOUNT_EMAIL to the correct value.\n"
126
+
exit
127
+
fi
128
+
129
+
# Check MariaDB Password
130
+
if [ "$MARIADB_ADMIN_PASSWORD"= PLACEHOLDER ];
131
+
then
132
+
echo -e "\nWARNING:\n\nMARIADB_ADMIN_PASSWORD is set to PLACEHOLDER. EngineScript requires this be set to a unique value.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change MARIADB_ADMIN_PASSWORD to something more secure.\n"
133
+
exit
134
+
fi
135
+
136
+
# Check Nginx Username
137
+
if [ "$NGINX_USERNAME"= PLACEHOLDER ];
138
+
then
139
+
echo -e "\nWARNING:\n\nNGINX_USERNAME is set to PLACEHOLDER. EngineScript requires this be set to a unique value.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change NGINX_USERNAME to something more secure.\n"
140
+
exit
141
+
fi
142
+
143
+
# Check Nginx Password
144
+
if [ "$NGINX_PASSWORD"= PLACEHOLDER ];
145
+
then
146
+
echo -e "\nWARNING:\n\nNGINX_PASSWORD is set to PLACEHOLDER. EngineScript requires this be set to a unique value.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change NGINX_PASSWORD to something more secure.\n"
147
+
exit
148
+
fi
149
+
150
+
# Check phpMyAdmin Username
151
+
if [ "$PHPMYADMIN_USERNAME"= PLACEHOLDER ];
152
+
then
153
+
echo -e "\nWARNING:\n\nPHPMYADMIN_USERNAME is set to PLACEHOLDER. EngineScript requires this be set to a unique value.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change PHPMYADMIN_USERNAME to something more secure.\n"
154
+
exit
155
+
fi
156
+
157
+
# Check phpMyAdmin Password
158
+
if [ "$PHPMYADMIN_PASSWORD"= PLACEHOLDER ];
159
+
then
160
+
echo -e "\nWARNING:\nPHPMYADMIN_PASSWORD is set to PLACEHOLDER. EngineScript requires this be set to a unique value.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change PHPMYADMIN_PASSWORD to something more secure.\n"
echo -e "\nWARNING:\n\nWP_ADMIN_EMAIL is set to [email protected]. EngineScript requires this be set to a unique value.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change WP_ADMIN_EMAIL to a real email address.\n"
168
+
exit
169
+
fi
170
+
171
+
# Check WordPress Admin Username
172
+
if [ "$WP_ADMIN_USERNAME"= PLACEHOLDER ];
173
+
then
174
+
echo -e "\nWARNING:\n\nWP_ADMIN_USERNAME is set to PLACEHOLDER. EngineScript requires this be set to a unique value.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change WP_ADMIN_USERNAME to something more secure.\n"
175
+
exit
176
+
fi
177
+
178
+
# Check WordPress Admin Password
179
+
if [ "$WP_ADMIN_PASSWORD"= PLACEHOLDER ];
180
+
then
181
+
echo -e "\nWARNING:\n\nWP_ADMIN_PASSWORD is set to PLACEHOLDER. EngineScript requires this be set to a unique value.\nPlease return to the config file with command ${BOLD}es.config${NORMAL} and change WP_ADMIN_PASSWORD to something more secure.\n"
0 commit comments