[nextcloud-server] trailing / out of VHOST
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
a6111012db
commit
ba16b4c595
1 changed files with 5 additions and 5 deletions
|
@ -9,9 +9,9 @@ ARCH="noarch" # hardcode ARCH
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-gwh}
|
TAG=${TAG:-gwh}
|
||||||
|
|
||||||
VHOST=${VHOST:-vhosts/$PRGNAM/}
|
VHOST=${VHOST:-vhosts/$PRGNAM}
|
||||||
VHOSTROOT=/var/www/${VHOST}
|
VHOSTROOT=/var/www/${VHOST}
|
||||||
DOCROOT=${DOCROOT:-/var/www/${VHOST}htdocs}
|
DOCROOT=${DOCROOT:-/var/www/${VHOST}/htdocs}
|
||||||
DATAROOT=${DATAROOT:-/home/nextcloud/data}
|
DATAROOT=${DATAROOT:-/home/nextcloud/data}
|
||||||
|
|
||||||
PHPUSER=${PHPUSER:-apache}
|
PHPUSER=${PHPUSER:-apache}
|
||||||
|
@ -99,11 +99,11 @@ config etc/logrotate.d/nextcloud.new
|
||||||
|
|
||||||
chown -R $PHPUSER:$PHPGROUP $DOCROOT/apps
|
chown -R $PHPUSER:$PHPGROUP $DOCROOT/apps
|
||||||
|
|
||||||
grep -q "/var/www/${VHOST}htdocs/cron.php" /var/spool/cron/crontabs/apache || echo "*/15 * * * * php -f /var/www/${VHOST}htdocs/cron.php" >> /var/spool/cron/crontabs/apache
|
grep -q "/var/www/${VHOST}/htdocs/cron.php" /var/spool/cron/crontabs/apache || echo "*/15 * * * * php -f /var/www/${VHOST}/htdocs/cron.php" >> /var/spool/cron/crontabs/apache
|
||||||
grep -q "/var/www/${VHOST}nextcloud-news-updater.rb" /var/spool/cron/crontabs/apache || echo "*/15 * * * * php -f /var/www/${VHOST}nextcloud-news-updater.rb" >> /var/spool/cron/crontabs/apache
|
grep -q "/var/www/${VHOST}/nextcloud-news-updater.rb" /var/spool/cron/crontabs/apache || echo "*/15 * * * * php -f /var/www/${VHOST}/nextcloud-news-updater.rb" >> /var/spool/cron/crontabs/apache
|
||||||
|
|
||||||
echo "Upgrading database and applications"
|
echo "Upgrading database and applications"
|
||||||
( cd /var/www/${VHOST}htdocs/
|
( cd /var/www/${VHOST}/htdocs/
|
||||||
sudo -u $PHPUSER php ./occ upgrade --quiet --no-interaction
|
sudo -u $PHPUSER php ./occ upgrade --quiet --no-interaction
|
||||||
)
|
)
|
||||||
echo "Post-installation process completed"
|
echo "Post-installation process completed"
|
||||||
|
|
Loading…
Reference in a new issue