#!/bin/bash . ./piler.conf ln -s ./piler.conf .env # docker start echo echo "===================================" echo "start docker-compose for Piler" echo "===================================" echo cd /opt/piler-docker docker-compose up -d echo echo "===================================" echo "backup the File config-site.php" echo "===================================" echo if [ ! -f /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php.bak ]; then cp /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php.bak else rm /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php cp /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php.bak /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php fi echo echo "===================================" echo "set User settings ..." echo "===================================" echo cat >> /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php <> /var/lib/docker/volumes/piler-docker_piler_etc/_data/config-site.php <