commit 1949d2e7538c4fa9744745306b5ad4026092291e parent 4070553307f434a0729a7be36277f5f16caadbee Author: Jan Pobříslo <ccx@te2000.cz> Date: Tue, 24 May 2022 10:33:48 +0200 Create bindmount directories for recombee Diffstat:
M | zsh-functions/confz_site_containers_init | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/zsh-functions/confz_site_containers_init b/zsh-functions/confz_site_containers_init @@ -38,10 +38,11 @@ confz_site_containers_user_check() { # bind-mounts for alpine-recombee bindroot=$vars[containers_dir]/user/$vars[user]/alpine-recombee/root - fstab=( ) - for bind_dir in /home/$vars[user]/git/recombee; do - fstab+=( $bind_dir$'\t'$bindroot/${bind_dir#/}$bind ) - done + fs_d path=/home/$vars[user]/git + fs_o path=/home/$vars[user]/git owner=$vars[user] + fs_d path=/home/$vars[user]/git/recombee + fs_o path=/home/$vars[user]/git/recombee owner=$vars[user] + fstab=( $bind_dir$'\t'$bindroot/${bind_dir#/}$bind ) require container_service_generic \ image_name=alpine-recombee fstab_extra=${(F)fstab} \ :containers_dir :svscan_dir :user