Improive install script, update changelog

This commit is contained in:
VirtuBox
2019-07-13 05:20:35 +02:00
parent 3a31656baf
commit 8fd104822b
2 changed files with 16 additions and 14 deletions

View File

@@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- phpRedisAdmin installation - phpRedisAdmin installation
- Duplicated locations /robots.txt after upgrade to v3.9.5.3 - Duplicated locations /robots.txt after upgrade to v3.9.5.3
- Site update with flag "--le=off" - Site update with flag "--le=off"
- pt-query-advisor dead link
### v3.9.5.3 - 2019-06-18 ### v3.9.5.3 - 2019-06-18

29
install
View File

@@ -330,13 +330,10 @@ wo_update_wp_cli() {
WP_CLI_PATH=$(command -v wp) WP_CLI_PATH=$(command -v wp)
if [ -n "$WP_CLI_PATH" ]; then if [ -n "$WP_CLI_PATH" ]; then
rm -rf "$WP_CLI_PATH" rm -rf "$WP_CLI_PATH"
# Update WP-CLI to the most recent version
wget -qO /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x /usr/local/bin/wp
else
wget -qO /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x /usr/local/bin/wp
fi fi
# Update WP-CLI to the most recent version
wget -qO /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x /usr/local/bin/wp
[ ! -h /usr/bin/wp ] && { [ ! -h /usr/bin/wp ] && {
ln -s /usr/local/bin/wp /usr/bin/ ln -s /usr/local/bin/wp /usr/bin/
} }
@@ -410,11 +407,15 @@ wo_install() {
} >> "$wo_install_log" 2>&1 } >> "$wo_install_log" 2>&1
if [ "$wo_force_install" = "y" ]; then if [ -f $HOME/.gitconfig ]; then
[ ! -f $HOME/.gitconfig ] && { bash -c 'echo -e "[user]\n\tname = $USER\n\temail = root@$HOSTNAME" > $HOME/.gitconfig'; } python3 setup.py install >> $wo_install_log 2>&1
else
if [ "$wo_force_install" = "y" ]; then
[ ! -f $HOME/.gitconfig ] && { bash -c 'echo -e "[user]\n\tname = $USER\n\temail = root@$HOSTNAME" > $HOME/.gitconfig'; }
fi
python3 setup.py install
fi fi
python3 setup.py install
} }
wo_upgrade_nginx() { wo_upgrade_nginx() {
@@ -439,18 +440,18 @@ wo_upgrade_nginx() {
# add new Nginx repository # add new Nginx repository
if [ "$wo_linux_distro" = "Ubuntu" ]; then if [ "$wo_linux_distro" = "Ubuntu" ]; then
wget -qO /tmp/nginx-wo.key "https://download.opensuse.org/repositories/home:virtubox:WordOps/xUbuntu_${wo_distro_id}/Release.key" add-apt-repository ppa:wordops/nginx-wo -y -u
else else
if [ "$wo_distro_version" == "jessie" ]; then if [ "$wo_distro_version" == "jessie" ]; then
wget -qO /tmp/nginx-wo.key https://download.opensuse.org/repositories/home:virtubox:WordOps/Debian_8.0/Release.key wget -qO /tmp/nginx-wo.key https://download.opensuse.org/repositories/home:virtubox:WordOps/Debian_8.0/Release.key
else else
wget -qO /tmp/nginx-wo.key https://download.opensuse.org/repositories/home:virtubox:WordOps/Debian_9.0/Release.key wget -qO /tmp/nginx-wo.key https://download.opensuse.org/repositories/home:virtubox:WordOps/Debian_9.0/Release.key
fi fi
# import the respository key for updates
apt-key add - < /tmp/nginx-wo.key
rm -f /tmp/nginx-wo.key
sudo apt-get update -qq
fi fi
# import the respository key for updates
apt-key add - < /tmp/nginx-wo.key
rm -f /tmp/nginx-wo.key
sudo apt-get update -qq
# stop nginx # stop nginx
service nginx stop service nginx stop