Fix cheat.sh symbolic link

This commit is contained in:
VirtuBox
2019-09-04 00:04:58 +02:00
parent b1b3cd695c
commit ebdac21cab
3 changed files with 5 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Fix cheat.sh install [PR #139](https://github.com/WordOps/WordOps/pull/139)
- sslutils error when trying to display SSL certificate expiration
- Fix cheat.sh symbolink link check before creation
### v3.9.8.9 - 2019-09-03

View File

@@ -798,7 +798,9 @@ wo_ufw_setup() {
wo_cheat_install() {
curl -sL https://cht.sh/:cht.sh > /usr/local/bin/cht.sh
chmod +x /usr/local/bin/cht.sh
ln -s /usr/local/bin/cht.sh /usr/local/bin/cheat
[ ! -h /usr/local/bin/cheat ] && {
ln -s /usr/local/bin/cht.sh /usr/local/bin/cheat
}
curl -sL https://cheat.sh/:bash_completion > /etc/bash_completion.d/cht.sh
}

View File

@@ -150,11 +150,9 @@ for stack in $stack_upgrade; do
fi
done
echo -e "${CGREEN}#############################################${CEND}"
echo -e ' various informations '
echo -e "${CGREEN}#############################################${CEND}"
wp --allow-root --info
wo site info wp1.com
wo stack purge --all --force
wo stack purge --all --force