website-to-other/cleanup.sh
2025-02-13 20:38:45 +00:00

41 lines
1.4 KiB
Bash
Executable File

#!/usr/pkg/bin/bash
# Copyright (c) 2024, 2025, Scott C. MacCallum (scm@sdf.org).
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Change this variable to the group that should be informed of a need to
# charge the battery. On GNU/Linux distributions users are often part of
# a group that is the same as their login name, which works well if you only
# want your user to be informed on the console.
WebDir="/sdf/arpa/ns/s/scm/html"
TextWebDir="/sdf/arpa/ns/s/scm/html/text"
rm $WebDir/index.html~
rm $TextWebDir/index.html~
rm $TextWebDir/index.html-01
rm $TextWebDir/index.html-02
rm $TextWebDir/index.html-03
rm $TextWebDir/index.html-04
rm $TextWebDir/index.html-05
rm $TextWebDir/index.html-06
rm $TextWebDir/index.html-07
rm $TextWebDir/index.html-08
rm $TextWebDir/index.html-09
rm $TextWebDir/index.html.old
exit 0