improved rpm build

This commit is contained in:
SJ
2013-11-02 15:02:35 +01:00
parent 92b9d692f1
commit 52c58901e6
2 changed files with 17 additions and 6 deletions

View File

@@ -389,18 +389,25 @@ execute_post_install_tasks() {
chmod 755 $LOCALSTATEDIR/piler/stat
if [ -d webui ]; then webui_install; fi
if [ -d webui ]; then
echo -n "Copying www files to $DOCROOT... "
mkdir -p $DOCROOT || exit 1
cp -R webui/* $DOCROOT
cp -R webui/.htaccess $DOCROOT
fi
if [ -d /var/www/piler.yourdomain.com ]; then
mv /var/www/piler.yourdomain.com $DOCROOT
fi
if [ -d $DOCROOT ]; then webui_install; fi
}
webui_install() {
echo -n "Copying www files to $DOCROOT... "
mkdir -p $DOCROOT || exit 1
cp -R webui/* $DOCROOT
cp -R webui/.htaccess $DOCROOT
chmod 770 $DOCROOT/tmp $DOCROOT/images
chgrp $WWWGROUP $DOCROOT/tmp
chgrp $WWWGROUP $DOCROOT/system/helper/phpqrcode/cache