| 12345678910111213141516171819 |
- #! /bin/bash
- #
-
- set -o allexport;
- source ./.env;
- set +o allexport
-
- volume_path=/home/$USER/.docker-data/volumes
- # volume_path=/var/lib/docker/volumes
-
- volume_src_path=$volume_path/$PREFIX-web/_data
- volume_dest_path=$PWD/volume
-
-
- if [ -d ./volume ]; then
- if [ ! "$(ls -A ./volume)" ]; then
- /usr/bin/bindfs --force-user=$USER --force-group=$USER --create-for-user=www-data --create-for-group=www-data $volume_src_path $volume_dest_path
- fi
- fi
|