vjost
This commit is contained in:
parent
43300a4a7e
commit
32b63b3cf8
1 changed files with 5 additions and 4 deletions
|
@ -9,6 +9,7 @@ BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-cyco}
|
TAG=${TAG:-cyco}
|
||||||
|
|
||||||
VHOST=${VHOST:-vhosts/$PRGNAM/}
|
VHOST=${VHOST:-vhosts/$PRGNAM/}
|
||||||
|
VHOSTROOT=/var/www/${VHOST}
|
||||||
DOCROOT=${DOCROOT:-/var/www/${VHOST}htdocs}
|
DOCROOT=${DOCROOT:-/var/www/${VHOST}htdocs}
|
||||||
|
|
||||||
PHPUSER=${PHPUSER:-apache}
|
PHPUSER=${PHPUSER:-apache}
|
||||||
|
@ -21,8 +22,8 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $OUTPUT $PKG/$DOCROOT
|
mkdir -p $TMP $OUTPUT $PKG/$VHOSTROOT
|
||||||
cd $PKG/$DOCROOT/
|
cd $PKG/$VHOSTROOT/
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
|
||||||
REPOSITORY=/home/installs/SlackBuilds/repository/$PRGNAM
|
REPOSITORY=/home/installs/SlackBuilds/repository/$PRGNAM
|
||||||
|
@ -40,9 +41,9 @@ else
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -R $REPOSITORY $PRGNAM
|
cp -R $REPOSITORY htdocs
|
||||||
|
|
||||||
cd $PRGNAM
|
cd htdocs
|
||||||
rm -fr .git .gitignore
|
rm -fr .git .gitignore
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find . \
|
find . \
|
||||||
|
|
Loading…
Add table
Reference in a new issue