summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2017-07-23 14:40:18 -0400
committerB Stack <bgstack15@gmail.com>2017-07-23 14:40:18 -0400
commit19fd23c6e2cf620f0ccc2ef1904ecab018f1aa7c (patch)
tree7d0a52ebbd41e71a133a841ed81b0e2aec963ac9 /usr
parentFixed update.sh scripts to chown files, and have similar syntax (diff)
downloadmirror-19fd23c6e2cf620f0ccc2ef1904ecab018f1aa7c.tar.gz
mirror-19fd23c6e2cf620f0ccc2ef1904ecab018f1aa7c.tar.bz2
mirror-19fd23c6e2cf620f0ccc2ef1904ecab018f1aa7c.zip
updated udpate-{deb,rpm,tar}.sh scripts
Diffstat (limited to 'usr')
-rwxr-xr-xusr/share/mirror/examples/deb/update-smith122deb.sh4
-rwxr-xr-xusr/share/mirror/examples/rpm/update-smith122rpm.sh4
-rwxr-xr-xusr/share/mirror/examples/tar/update-smith122tar.sh4
3 files changed, 6 insertions, 6 deletions
diff --git a/usr/share/mirror/examples/deb/update-smith122deb.sh b/usr/share/mirror/examples/deb/update-smith122deb.sh
index 03f5726..7d8242b 100755
--- a/usr/share/mirror/examples/deb/update-smith122deb.sh
+++ b/usr/share/mirror/examples/deb/update-smith122deb.sh
@@ -6,8 +6,8 @@ repodir=/mnt/public/www/smith122/repo/deb/
ownership="apache:admins"
filetypes="deb"
find "${repodir}" -exec chown "${ownership}" {} + 1>/dev/null 2>&1
-find "${repodir}" -type f -exec chmod "0644" {} + 1>/dev/null 2>&1
-find "${repodir}" -type d -exec chmod "0755" {} + 1>/dev/null 2>&1
+find "${repodir}" -type f -exec chmod "0664" {} + 1>/dev/null 2>&1
+find "${repodir}" -type d -exec chmod "0775" {} + 1>/dev/null 2>&1
chmod 0754 "$0"
restorecon -RF "${repodir}"
diff --git a/usr/share/mirror/examples/rpm/update-smith122rpm.sh b/usr/share/mirror/examples/rpm/update-smith122rpm.sh
index 0a91952..aaaca96 100755
--- a/usr/share/mirror/examples/rpm/update-smith122rpm.sh
+++ b/usr/share/mirror/examples/rpm/update-smith122rpm.sh
@@ -6,8 +6,8 @@ repodir=/mnt/public/www/smith122/repo/rpm/
ownership="apache:admins"
filetypes="rpm"
find "${repodir}" -exec chown "${ownership}" {} + 1>/dev/null 2>&1
-find "${repodir}" -type f -exec chmod "0644" {} + 1>/dev/null 2>&1
-find "${repodir}" -type d -exec chmod "0755" {} + 1>/dev/null 2>&1
+find "${repodir}" -type f -exec chmod "0664" {} + 1>/dev/null 2>&1
+find "${repodir}" -type d -exec chmod "0775" {} + 1>/dev/null 2>&1
chmod 0754 "$0"
restorecon -RF "${repodir}"
diff --git a/usr/share/mirror/examples/tar/update-smith122tar.sh b/usr/share/mirror/examples/tar/update-smith122tar.sh
index 3cefe19..c2d8bbc 100755
--- a/usr/share/mirror/examples/tar/update-smith122tar.sh
+++ b/usr/share/mirror/examples/tar/update-smith122tar.sh
@@ -6,8 +6,8 @@ repodir=/mnt/public/www/smith122/repo/tar/
ownership="apache:admins"
filetypes="tar"
find "${repodir}" -exec chown "${ownership}" {} + 1>/dev/null 2>&1
-find "${repodir}" -type f -exec chmod "0644" {} + 1>/dev/null 2>&1
-find "${repodir}" -type d -exec chmod "0755" {} + 1>/dev/null 2>&1
+find "${repodir}" -type f -exec chmod "0664" {} + 1>/dev/null 2>&1
+find "${repodir}" -type d -exec chmod "0775" {} + 1>/dev/null 2>&1
chmod 0754 "$0"
restorecon -RF "${repodir}"
bgstack15