Fix netdata purge
This commit is contained in:
14
.travis.yml
14
.travis.yml
@@ -24,6 +24,13 @@ before_script:
|
|||||||
- unset LANG
|
- unset LANG
|
||||||
- sudo apt-get install --assume-yes --quiet git python3-setuptools python3-dev python3-apt ccze tree
|
- sudo apt-get install --assume-yes --quiet git python3-setuptools python3-dev python3-apt ccze tree
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- sudo cat /etc/nginx/nginx.conf | ccze -A
|
||||||
|
- sudo cat /var/log/wo/wordops.log | ccze -A
|
||||||
|
- sudo cat /etc/mysql/my.cnf | ccze -A
|
||||||
|
- sudo bash install --purge
|
||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- lsb_release -a
|
- lsb_release -a
|
||||||
- sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = root@localhost.com" > /home/travis/.gitconfig'
|
- sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = root@localhost.com" > /home/travis/.gitconfig'
|
||||||
@@ -36,10 +43,3 @@ script:
|
|||||||
|
|
||||||
- sudo wo update --travis
|
- sudo wo update --travis
|
||||||
- sudo wo stack status
|
- sudo wo stack status
|
||||||
- sudo wo stack purge --all --force
|
|
||||||
- sudo bash install --purge
|
|
||||||
|
|
||||||
after_script:
|
|
||||||
- sudo cat /etc/nginx/nginx.conf | ccze -A
|
|
||||||
- sudo cat /var/log/wo/wordops.log | ccze -A
|
|
||||||
- sudo cat /etc/mysql/my.cnf | ccze -A
|
|
||||||
|
|||||||
@@ -132,3 +132,4 @@ echo -e ' various informations '
|
|||||||
echo -e "${CGREEN}#############################################${CEND}"
|
echo -e "${CGREEN}#############################################${CEND}"
|
||||||
wp --allow-root --info
|
wp --allow-root --info
|
||||||
wo site info wp1.com
|
wo site info wp1.com
|
||||||
|
wo stack purge --all --force
|
||||||
@@ -925,11 +925,11 @@ class WOStackController(CementBaseController):
|
|||||||
'kickstart.sh']).issubset(set(packages))):
|
'kickstart.sh']).issubset(set(packages))):
|
||||||
if WOVariables.wo_distro == 'Raspbian':
|
if WOVariables.wo_distro == 'Raspbian':
|
||||||
WOShellExec.cmd_exec(self, "bash /usr/"
|
WOShellExec.cmd_exec(self, "bash /usr/"
|
||||||
"libexec/netdata-"
|
"libexec/netdata/netdata-"
|
||||||
"uninstaller.sh -y -f")
|
"uninstaller.sh -y -f")
|
||||||
else:
|
else:
|
||||||
WOShellExec.cmd_exec(self, "bash /opt/netdata/usr/"
|
WOShellExec.cmd_exec(self, "bash /opt/netdata/usr/"
|
||||||
"libexec/netdata-"
|
"libexec/netdata/netdata-"
|
||||||
"uninstaller.sh -y -f")
|
"uninstaller.sh -y -f")
|
||||||
|
|
||||||
if (apt_packages):
|
if (apt_packages):
|
||||||
|
|||||||
Reference in New Issue
Block a user