Upgrade to latest version

This commit is contained in:
Glenn Y. Rolland 2018-12-05 22:15:03 +01:00
parent 19f863c799
commit ea5f78d172
2 changed files with 25 additions and 5 deletions

View file

@ -21,13 +21,13 @@ RUN curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer
RUN wget \
-O /tmp/dolibarr-7.0.0.zip \
https://github.com/Dolibarr/dolibarr/archive/7.0.0.zip
-O /tmp/dolibarr-8.0.3.zip \
https://github.com/Dolibarr/dolibarr/archive/8.0.3.zip
RUN unzip -d /usr/src /tmp/dolibarr-7.0.0.zip \
&& chown -R www-data:www-data /usr/src/dolibarr-7.0.0 \
RUN unzip -d /usr/src /tmp/dolibarr-8.0.3.zip \
&& chown -R www-data:www-data /usr/src/dolibarr-8.0.3 \
&& rm -fr /var/www/html \
&& cp -a /usr/src/dolibarr-7.0.0 /var/www/html
&& cp -a /usr/src/dolibarr-8.0.3 /var/www/html
ADD php-uploads.ini /usr/local/etc/php/conf.d/glenux-uploads.ini
ADD php-performance.ini /usr/local/etc/php/conf.d/glenux-performance.ini

20
gx-backup-erp Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
set -x
DATE="$(date --iso-8601)"
DISPLAY=:0
BACKUP_DIR="$HOME/Documents/Backup"
echo "Exporting database dump"
/usr/bin/setsid ssh apps.glenux.net \
dokku mariadb:export erp \
> "$BACKUP_DIR/net.glenux.apps.erp.$DATE.sql"
echo "Exporting files"
/usr/bin/setsid ssh apps.glenux.net \
docker exec erp.web.1 \
"bash -c 'cd /var/www/html/documents ; tar czf - .'" \
> "$BACKUP_DIR/net.glenux.apps.erp.$DATE.tar.gz"