diff options
-rw-r--r-- | usr/share/doc/mirror/README.txt | 1 | ||||
-rwxr-xr-x | usr/share/mirror/examples/tar/update-smith122tar.sh | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/usr/share/doc/mirror/README.txt b/usr/share/doc/mirror/README.txt index 0c71aa3..6b133ce 100644 --- a/usr/share/doc/mirror/README.txt +++ b/usr/share/doc/mirror/README.txt @@ -134,3 +134,4 @@ Changed deploy.conf to use package directories for deployment - Fixed deb and rpm icons to have transparent backgrounds. - Added the tar repo to deploy.conf. - Fixed deb source Date: format. +- Added update-tar example script. diff --git a/usr/share/mirror/examples/tar/update-smith122tar.sh b/usr/share/mirror/examples/tar/update-smith122tar.sh new file mode 100755 index 0000000..743ddcd --- /dev/null +++ b/usr/share/mirror/examples/tar/update-smith122tar.sh @@ -0,0 +1,5 @@ +#!/bin/sh +cd /mnt/public/www/smith122/repo/tar +chown -R apache:apache . +find . -type f -regextype grep \( -regex '.*\.tar' -o -regex '.*\.tgz' -o -regex '.*\.gz' \) -exec chmod '-x' {} \; ; +chmod +x "$0" |