diff --git a/tools/wipepuppet b/tools/wipepuppet new file mode 100644 index 0000000000000000000000000000000000000000..b7395f706773ebc856cae92ee783be8d6b5c992b --- /dev/null +++ b/tools/wipepuppet @@ -0,0 +1,62 @@ +#!/bin/sh +# wipepuppet - remove all sympa upstream files that puppet touches + +echo 'Really nuke all sympa files that puppet installs? (y/N)' +read check +if [ "${check}x" != 'yx' ]; then + exit 1 +fi + + +files='/etc/sympa/sympa.conf +/etc/apache2/sites-enabled/lists.riseup.net.conf +/etc/sympa/wwsympa.conf +/home/sympa/docroot/maintenance.html.disabled +/home/sympa/etc/topics.conf +/home/sympa/etc/edit_list.conf +/home/sympa/etc/mhonarc-ressources.tt2 +/etc/apache2/envvars +/home/sympa/docroot/index.html +/home/sympa/docroot/500.html +/home/sympa/docroot/robots.txt +/home/sympa/docroot/cssx/riseup.css +/home/sympa/docroot/cssx/fullPage.css +/home/sympa/docroot/cssx/print-preview.css +/home/sympa/docroot/cssx/print.css +/home/sympa/docroot/cssx/style.css +/home/sympa/docroot/cssx/bg-top.png +/home/sympa/docroot/cssx/fadey-bg.png +/home/sympa/docroot/cssx/grey9.png +/home/sympa/docroot/cssx/riseup-8.png +/home/sympa/docroot/cssx/white-shade-top.png +/home/sympa/docroot/img +/home/sympa/docroot/favicon.ico +/home/sympa/docroot/favicon.png +/home/sympa/docroot/icons/favicon_sympa.png +/home/sympa/docroot/inc/header.html +/home/sympa/docroot/inc/footer.html' + +dirs='/home/sympa/etc/mail_tt2 +/home/sympa/etc/web_tt2 +/home/sympa/etc/create_list_templates +/home/sympa/etc/scenari +/home/sympa/default/scenari +/home/sympa/default/create_list_templates' + +echo 'Removing files:' +for file in $files +do + if [ -e $file ]; then + echo "Removing $file" + rm $file + fi +done + +echo 'Removing dirs:' +for dir in $dirs +do + if [ -e $dir ]; then + echo "Removing ${dir}/" + rm -rf $dir + fi +done