2018-01-14 18:25:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# We need to install dependencies only for Docker
|
|
|
|
[[ ! -e /.dockerenv ]] && exit 0
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
apt-get update -yqq
|
2018-01-15 10:36:30 +00:00
|
|
|
apt-get install git sudo -yqq
|
2018-01-14 18:25:28 +00:00
|
|
|
|
|
|
|
curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
|
|
|
|
chmod +x /usr/local/bin/phpunit
|
|
|
|
|
2018-01-15 10:42:15 +00:00
|
|
|
#mkdir /data/apps -p
|
|
|
|
#cd /data/apps/
|
|
|
|
cd /var/www/html/custom_apps/
|
2018-01-14 18:25:28 +00:00
|
|
|
git clone https://gitlab.com/eneiluj/gpxedit-oc gpxedit
|
|
|
|
|
2018-01-15 11:03:03 +00:00
|
|
|
sudo -u www-data php /var/www/html/occ maintenance:install --database "sqlite" --admin-user "admin" --admin-pass "password"
|
|
|
|
sudo -u www-data php /var/www/html/occ app:enable gpxedit
|
|
|
|
sudo -u www-data php /var/www/html/occ upgrade
|
|
|
|
sudo -u www-data php /var/www/html/occ maintenance:mode --off
|
|
|
|
sudo -u www-data php /var/www/html/occ app:check-code gpxedit
|
2018-01-15 10:32:55 +00:00
|
|
|
|
2018-01-15 10:42:15 +00:00
|
|
|
ls /var/www/html/custom_apps/
|