2019-11-30 22:12:15 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -ev
|
|
|
|
|
|
|
|
# Clean documentation
|
|
|
|
rm -rf /srv/build/doc/*
|
|
|
|
|
|
|
|
# Clean basic tar
|
|
|
|
rm -f /srv/build/vm.tar
|
|
|
|
|
|
|
|
# Clean native apps
|
|
|
|
rm -rf /srv/build/alpine/*
|
|
|
|
|
|
|
|
# Clean built LXC packages
|
2020-03-12 22:56:40 +01:00
|
|
|
rm -rf /srv/build/spoc
|
2019-11-30 22:12:15 +01:00
|
|
|
|
|
|
|
# Remove nginx configs
|
2019-12-08 14:54:00 +01:00
|
|
|
for CONF in $(find /etc/nginx/conf.d -name '*.conf' -a ! -name repo.conf -a ! -name default.conf); do
|
2019-12-07 16:29:41 +01:00
|
|
|
rm -f ${CONF}
|
2019-11-30 22:12:15 +01:00
|
|
|
done
|
|
|
|
service nginx reload
|
|
|
|
|
2020-03-12 22:56:40 +01:00
|
|
|
# Stop running containers
|
|
|
|
for APP in $(spoc-container list); do
|
|
|
|
spoc-container stop ${APP}
|
|
|
|
done
|
2019-11-30 22:12:15 +01:00
|
|
|
|
2020-03-12 22:56:40 +01:00
|
|
|
# Remove data
|
|
|
|
rm -rf /var/lib/spoc
|
|
|
|
rm -rf /var/log/spoc
|