From 258fd797953ba64e577c98fa1ddc9c5698f1f3ed Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 23 Jul 2017 10:24:23 -0400 Subject: Added update-tar example script --- usr/share/doc/mirror/README.txt | 1 + usr/share/mirror/examples/tar/update-smith122tar.sh | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 usr/share/mirror/examples/tar/update-smith122tar.sh (limited to 'usr') 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" -- cgit