FastNetMon

Friday, 20 August 2010

Быстрое удаление папки bin-tmp при использовании ISPManager

cd /var/www/username/data

yum install -y screen # или apt-get intstall -y screen
install -d -g `stat -c "%G" bin-tmp` -o `stat -c "%U" bin-tmp` -m 700 bin-tmp2
mv bin-tmp bin-tmp-old
mv bin-tmp2 bin-tmp
/etc/init.d/apache2 restart
screen
rm -rf bin-tmp-old

No comments :

Post a Comment

Note: only a member of this blog may post a comment.