mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-28 22:45:02 +02:00
improved rpm build
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user