Merge branch 'master' of github.com:gwenhael-le-moine/slackbuilds

This commit is contained in:
Gwenhael Le Moine 2021-09-22 16:19:01 +02:00
commit 21605cd182
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -9,9 +9,9 @@ ARCH="noarch" # hardcode ARCH
BUILD=${BUILD:-1}
TAG=${TAG:-gwh}
VHOST=${VHOST:-vhosts/$PRGNAM/}
VHOST=${VHOST:-vhosts/$PRGNAM}
VHOSTROOT=/var/www/${VHOST}
DOCROOT=${DOCROOT:-/var/www/${VHOST}htdocs}
DOCROOT=${DOCROOT:-/var/www/${VHOST}/htdocs}
DATAROOT=${DATAROOT:-/home/nextcloud/data}
PHPUSER=${PHPUSER:-apache}
@ -99,11 +99,11 @@ config etc/logrotate.d/nextcloud.new
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}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}/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
echo "Upgrading database and applications"
( cd /var/www/${VHOST}htdocs/
( cd /var/www/${VHOST}/htdocs/
sudo -u $PHPUSER php ./occ upgrade --quiet --no-interaction
)
echo "Post-installation process completed"