some small fixes
- final release. - port tools fixed - not assigning port number during fresh installations. - type in redis settings in wp-config. - clear opcache wrong url corrected.
This commit is contained in:
parent
8773d67cb2
commit
31bb518b4e
4 changed files with 4 additions and 4 deletions
|
@ -297,7 +297,6 @@ php_optim() {
|
|||
|
||||
nginx_tool_site() {
|
||||
# Port 22222 tools site
|
||||
[[ -z $(conf_read tools-port) ]] && tools_port 22222
|
||||
sudo site $(conf_read tools-port) -php
|
||||
sudo cp /opt/webinoly/templates/nginx/22222 /etc/nginx/sites-available/$(conf_read tools-port)
|
||||
sudo sed -i "s/22222/$(conf_read tools-port)/g" /etc/nginx/sites-available/$(conf_read tools-port)
|
||||
|
@ -306,6 +305,7 @@ nginx_tool_site() {
|
|||
|
||||
|
||||
nginx_tool() {
|
||||
[[ -z $(conf_read tools-port) ]] && tools_port 22222
|
||||
[[ $(conf_read php) == "true" ]] && nginx_tool_site
|
||||
# in case php was installed before nginx
|
||||
[[ $(conf_read php-tool) == "true" && ! -a /var/www/$(conf_read tools-port)/htdocs/php/index.php ]] && php_tool_site
|
||||
|
|
|
@ -411,7 +411,7 @@ _EOF_
|
|||
|
||||
# Redis Conf
|
||||
sudo sed -i "/stop editing/i \define('WP_REDIS_SELECTIVE_FLUSH', true);" /var/www/$domain/wp-config.php
|
||||
sudo sed -i "/stop editing/i \define('WP_CACHE_KEY_SALT', 'redis_object_cache_for_wp_$domain);" /var/www/$domain/wp-config.php
|
||||
sudo sed -i "/stop editing/i \define('WP_CACHE_KEY_SALT', 'redis_object_cache_for_wp_$domain');" /var/www/$domain/wp-config.php
|
||||
|
||||
# Multisite wp-config
|
||||
if [[ "$type" == "-wpsubdir" || "$type" == "-wpsubdom" ]]; then
|
||||
|
|
|
@ -302,7 +302,7 @@ elif [[ $opt == "-clear-cache" ]]; then
|
|||
sudo chown -R www-data:www-data /var/www/$port/htdocs/php/opcache
|
||||
sudo chmod 644 /var/www/$port/htdocs/php/opcache/index.php
|
||||
fi
|
||||
wget -q --spider --timeout=15 http://localhost:$port/cache/
|
||||
wget -q --spider --timeout=15 http://localhost:$port/php/opcache/
|
||||
echo "${gre}- OpCache has been successfully cleared!${end}"
|
||||
else
|
||||
echo "${red}[ERROR] We can not clear OpCache because PHP and NGINX are not installed!${end}"
|
||||
|
|
2
weby
2
weby
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Webinoly Installation Script.
|
||||
webyversion="1.4.1-beta"
|
||||
webyversion="1.4.1"
|
||||
|
||||
|
||||
# Check OS support
|
||||
|
|
Loading…
Reference in a new issue