• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: Commit

Grid環境構築用のChefリポジトリです。


Commit MetaInfo

Revisióneb331cb83b675660dc71230f6bfd60665eccaf41 (tree)
Tiempo2022-01-03 19:49:01
Autorwhitestar <whitestar@user...>
Commiterwhitestar

Log Message

bubbleupnp-server: fix the restore script.

Cambiar Resumen

Diferencia incremental

--- a/cookbooks/bubbleupnp-server/CHANGELOG.md
+++ b/cookbooks/bubbleupnp-server/CHANGELOG.md
@@ -1,5 +1,9 @@
11 # bubbleupnp-server CHANGELOG
22
3+0.2.2
4+-----
5+- fix the restore script.
6+
37 0.2.1
48 -----
59 - fix volume mounting for the official image.
--- a/cookbooks/bubbleupnp-server/templates/default/opt/docker-compose/app/bubbleupnp-server/restore.sh
+++ b/cookbooks/bubbleupnp-server/templates/default/opt/docker-compose/app/bubbleupnp-server/restore.sh
@@ -1,8 +1,12 @@
1-#!/bin/sh
1+#!/bin/bash
22
33 backup_dir=bak
44 container_id=`sudo docker-compose ps -q bubbleupnp-server`
55
6+# Note: `docker cp` chown root:root
67 sudo docker cp ./${backup_dir}/configuration.xml ${container_id}:<%= @workdir %>/
78 sudo docker cp ./${backup_dir}/cache ${container_id}:<%= @workdir %>/
89 sudo docker cp ./${backup_dir}/Playlists ${container_id}:<%= @workdir %>/
10+
11+# fix file owner
12+sudo docker exec -u root ${container_id} chown -R bubbleupnpserver:users <%= @workdir %>/{configuration.xml,cache,Playlists}
--- a/cookbooks/bubbleupnp-server/version
+++ b/cookbooks/bubbleupnp-server/version
@@ -1 +1 @@
1-0.2.1
1+0.2.2
Show on old repository browser