File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /bin/sh -e
1+ #! /bin/bash -e
22
33# set up convenience links to Webmin log files
44
@@ -7,7 +7,7 @@ WEBMIN_LOG=/var/log/webmin
77
88mkdir -p $WEBMIN_LOG
99
10- files=" miniserv.log miniserv. error webmin.log"
11- for f in $ files; do
12- ln -s $WEBMIN_VAR /$f $WEBMIN_LOG /$f
10+ files=( miniserv.error webmin.log)
11+ for f in " ${ files[@]} " ; do
12+ ln -s " $WEBMIN_VAR /$f " " $WEBMIN_LOG /$f "
1313done
Original file line number Diff line number Diff line change 11# rm apt proxy conf
22/etc/apt/apt.conf.d/01proxy
33
4+ # clean apt cache
5+ /var/cache/apt/archives/
6+ !/var/cache/apt/archives/partial
7+
8+ # clean tmp key files
9+ /etc/apt/trusted.gpg~
10+ /etc/apt/trusted.gpg.d/*.gpg~
11+
12+ # clean apt related logs
13+ /var/log/dpkg.log
14+ /var/log/bootstrap.log
15+ /var/log/apt/term.log
16+ /var/log/apt/history.log
17+
418# rm composer auth token
519/root/.composer/auth.json
620/var/www/.composer/auth.json
1630# rm bashlib
1731/usr/local/src/tkl-bashlib
1832
19- # rm gh_releases
20- /usr/local/bin/gh_releases
21-
2233# rm tmp contents
2334~/tmp/*
2435~/tmp/.*
Original file line number Diff line number Diff line change 11/etc/resolvconf/resolv.conf.d/original
22
3- /etc/apt/trusted.gpg~
4- /etc/apt/trusted.gpg.d/debian.gpg~
5- /etc/apt/trusted.gpg.d/turnkey.gpg~
6-
7- /var/log/dpkg.log
8- /var/log/bootstrap.log
9- /var/log/apt/term.log
10- /var/log/apt/history.log
11-
123/var/www/html
You can’t perform that action at this time.
0 commit comments