Commit fca2d83d authored by Nico Schottelius's avatar Nico Schottelius

more cleanups (especially in the permissions section)

Signed-off-by: default avatarNico Schottelius <nico@ikn.schottelius.org>
parent 1ea04937
#!/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
#!/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
#!/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}"
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment