more cleanups (especially in the permissions section)

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2010-01-02 13:35:22 +01:00
parent 1ea04937d8
commit fca2d83dc4
7 changed files with 0 additions and 74 deletions

View File

@ -1,27 +0,0 @@
#!/bin/sh
file=$1
host=creme-s.schottelius.org
basedir=/home/server/www/nico/org/schottelius/creme-s
baseurl="http://beta.clinux.info"
reldir=testing/0.0.5/
url=$baseurl/$reldir
dir=$basedir/$reldir
if [ $# -lt 1 ]; then
echo "Please tell me, what to pre-release to testing dir."
exit 1
fi
for file in $@; do
if [ ! -e "$file" ]; then
echo "File $file is not existing, skipping."
continue
fi
scp "$file" "${host}:$dir"
ssh "$host" "chmod a+r $dir/$file"
echo "Pre-released ${url}/${file}"
done

15
files-x
View File

@ -1,15 +0,0 @@
#!/bin/sh
#file=`ls -l $1 | egrep '^d' | awk ' {print $9 }'`
#if [ -z file ]; then echo $1;fi
# echo gerade : $1
# file : $file
if [ -d "$1" ]
then
echo "dir : $1"
chown root.wheel $1 -R
chmod g+rx $1
chmod g+r $1 -R
fi

View File

@ -1,13 +0,0 @@
#!/bin/sh
file=$1
host=home.schottelius.org
dir=public_html/pre-release/
url="http://home.schottelius.org/~nico/pre-release"
[ -z "$file" ] && exit 1
scp "$file" "${host}:$dir"
ssh $host "chmod a+r $dir/$file"
echo "Pre-released ${url}/${file}"

View File

@ -1,19 +0,0 @@
#!/bin/sh
#file=`ls -l $1 | egrep '^d' | awk ' {print $9 }'`
#if [ -z file ]; then echo $1;fi
# echo gerade : $1
# file : $file
if [ -d "$1" ]
then
echo "dir : $1"
chmod u=rwx,g=rx,o-rwx $1
elif [ -x "$1" ];then
echo "exe: $1"
chmod u=rwx,g=rx,o-rwx $1
else
echo "file: $1"
chmod g=r,o-rwx $1
fi